Chinaunix

标题: CentOS 7中安装FastDFS的PHP Client报错 [打印本页]

作者: G2017    时间: 2016-03-01 17:21
标题: CentOS 7中安装FastDFS的PHP Client报错
FastDFS版本
fastdfs-5.05

PHP版本
PHP 5.6.16 (cli) (built: Dec  2 2015 22:42:21)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

安装
#phpize
#./configure --with-php-config=/usr/local/bin/php-config
...
报错信息
Build complete.
Don't forget to run 'make test'.

PHP Warning:  PHP Startup: Unable to load dynamic library '/home/Gao/Code/fastdfs-5.05/php_client/modules/fastdfs_client.so' - /home/Gao/Code/fastdfs-5.05/php_client/modules/fastdfs_client.so: undefined symbol: g_connection_pool in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/home/Gao/Code/fastdfs-5.05/php_client/modules/fastdfs_client.so' - /home/Gao/Code/fastdfs-5.05/php_client/modules/fastdfs_client.so: undefined symbol: g_connection_pool in Unknown on line 0

初步分析
一样的PHP和fastdfs版本在换在centos 6.7系统中就一切正常,是不是跟系统版本有关系?
作者: happy_fish100    时间: 2016-03-02 09:11
安装过较早版本的libfastcommon或者FastDFS么?
删除 /usr/local/lib/libfastcommon.so 试试

作者: G2017    时间: 2016-03-02 15:49
这个环境里安装的都是最新版本的FASTDFS,libcommon安装的是1.07。在/usr/local/lib下面没有您说那个文件。重新安装github上的master版本,libcommon,在/usr/lib下面有libfastcommon.so,但是问题依旧存在。回复 2# happy_fish100


   
作者: happy_fish100    时间: 2016-03-02 16:20
需要先编译和安装FastDFS client。
注:libfastcommon的确应该使用最新版本。
作者: G2017    时间: 2016-03-02 16:22
的确是安装其它版本导致的问题,将所有的lib库文件删除重新安装就好了,非常感谢!!!!
回复 4# happy_fish100


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2