2 mappingsunlight MappingSunlight 于 2016.04.29 17:10 提问

centos7安装PHP5.6.20失败,请帮助!

configure成功,make的时候失败:
/bin/ld: ext/openssl/.libs/openssl.o: undefined reference to symbol 'X509_PURPOSE_get_count@@libcrypto.so.10'
/bin/ld: note: 'X509_PURPOSE_get_count@@libcrypto.so.10' is defined in DSO /usr/lib64/libcrypto.so.10 so try adding it to the linker command line
/usr/lib64/libcrypto.so.10: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

configure参数:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=mysqlnd --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --disable-ipv6 --with-pear --with-curl --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-openssl

哪位遇到过这种问题?

3个回答

CSDNXIAON
CSDNXIAON   2016.04.29 17:24

centos7 安装php-7.0.4
CentOS 6.5 安装 php7 教程
centos 7 yum php mysql apche 安装
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

Lov_NinGx
Lov_NinGx   2016.04.29 22:01

/bin/ld: note: 'X509_PURPOSE_get_count@@libcrypto.so.10' is defined in DSO /usr/lib64/libcrypto.so.10 so try adding it to the linker command line
在makefile中try adding it to the linker command line

找到 openssl.o 按gcc 用法添加 -lcrypto

MappingSunlight
MappingSunlight   2016.05.03 09:00

还是不太明白,是在编译PHP的时候加还是编译openssl的时候?还请明示,谢谢。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!