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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?