php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0

从一台服务器上拷贝php-fpm程序到另一台后启动提示错误:

/etc/init.d/php-fpm-5.4 start
Starting php-fpm [27-Jul-2017 11:31:39] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/gearman.so‘ - libgearman.so.8: cannot open shared object file: No such file or directory in Unknown on line 0
 done

看错误提示是找不到libgearman.so.8

开始是怀疑直接拷贝的gearman.so扩展不能用,从网上下载gearman重新编译:

下载最新版本:
$ wg 
$ tar zxvf gearman-1.1.1.tgz
$ cd gearman-1.1.1/
$ phpize
$ ./configure --with-php-config=/usr/local/php/bin/php-config
$ make
$ make install

make过程中有错误:

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable gearman support... yes, shared
not found

提示需要安装libgearman,到这里才知道问题出在哪里,直接yum安装libgearman

yum install libgearman
...
....
.....
Dependencies Resolved

========================================================================================================================
 Package                        Arch                     Version                           Repository              Size
========================================================================================================================
Installing:
 libgearman                     x86_64                   1.1.8-2.el6                       epel                    70 k
Installing for dependencies:
 boost-system                   x86_64                   1.41.0-28.el6                     base                    26 k

Transaction Summary
========================================================================================================================
Install       2 Package(s)
...                                                                 2/2 
....
.....
Installed:
  libgearman.x86_64 0:1.1.8-2.el6                                                                                       

Dependency Installed:
  boost-system.x86_64 0:1.41.0-28.el6                                                                                   

Complete!

可以安装,直接安装后重启php-fpm服务,没有提示错误。解决。

/etc/init.d/php-fpm-5.4 restart
Gracefully shutting down php-fpm . done
Starting php-fpm  done
时间: 2024-08-01 20:55:16

php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0的相关文章

VM虚拟机启动报错Reason Failed to lock the file怎么办

VMware启动报错Reason: Failed to lock the file的解决方法 症状:  启动VMware虚拟机的时候出现了Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.的错误. 解决办法一: 1.在VMware该虚拟机路径下的所有.lck文件和文件夹下删除或迁移至其它目录,一般就可以解决了. 2.如果再次启动VMwar

Linux 格式化分区 报错Could not stat --- No such file or directory 和 partprobe 命令

分区的过程正常: [[email protected] /]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot      Start         End      Blocks   Id  System /dev/sda1   *

laravel 报错SQLSTATE[HY000] [2002] No such file or directory

在mac中执行php artisan migrate时报错 SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = weifenxiao and table_name = migrations) [PDOException] SQLSTATE[HY000] [2002] No such file or directory

HBase启动时报错:/bin/java: No such file or directory6/bin/../bin/hbase: line 412: /usr/local/jdk1.8.0_152/bin/java

欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 今天在启动HBase时发现如下错误:/bin/java: No such file or directory6/bin/../bin/hbase: line 412: /usr/local/jdk1.8.0_152/bin/java,而在我的hbase-env.sh中又JAVA_HOME,路径也是正确的,可为什么还会报这个错误呢?后来我才发现是因

mycat启动报Unable to start JVM: No such file or directory (2)【转】

mycat启动失败,查看日志 /mycat/logs/wrapper.log发现如下信息 1  STATUS | wrapper  | 2017/11/22 16:15:17 | --> Wrapper Started as Daemon      2  STATUS | wrapper  | 2017/11/22 16:15:17 | Launching a JVM...      3  ERROR  | wrapper  | 2017/11/22 16:15:17 | Unable to s

PHP连接MySQL的时候报错SQLSTATE[HY000] [2002] No such file or directory

错误环境:Mac OS 10.10 找到mysql.sock文件的位置 $sudo find / -name mysql.sock ------结果如下---------- find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory /private/tmp/mysql.sock 检查/var/mysql是否存在 $ll /var/mysql 如果/var/mysql不存在则创建 $sudo mkdir /var/mysql

redis 安装报错 jemalloc/jemalloc.h: No such file or directory。

对于redis安装的这个错误,我在博客redis 安装 与错误解决办法最后有提及,但是网上大部分文章的对这个问题的解答都是有误的.所以在这里单列出来. 错误内容: jemalloc/jemalloc.h: No such file or directory. 文档 针对这个错误,我们可以在README.md 文件中看到解释. --------- Selecting a non-default memory allocator when building Redis is done by sett

thinkphp 数据库连接报错 SQLSTATE[HY000] [2002] No such file or directory

https://blog.csdn.net/tornge/article/details/51388233 找到mysql sokcet的路径 vim /etc/mysql/mysql.conf.d/mysqld.cnf socket = /var/run/mysqld/mysqld.sock 在php.ini中关于mysql的socket路径的地方,修改如如下 [Pdo_mysql] ; If mysqlnd is used: Number of cache slots for the int

Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架

SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.org.springframework.web.context.ContextLoaderListener在web.xml配置文件中已经配置 2.查看工程是否添加此jar包,org.springframework.web.context.ContextLoaderListener的jar包为spring