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 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境