MappingSunlight 2016-04-29 09:10 采纳率: 0%
浏览 1979

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

哪位遇到过这种问题?

  • 写回答

2条回答

  • Lov_NinGx 2016-04-29 14: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

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记