开发者社区> 问答> 正文

mac下编译php5.6.17出错,configure 没有问题,make出错? 400 请求出错 

系统: mac os x 10.11

php: php5.6.17

openssl: OpenSSL 1.0.2e 3 Dec 2015

 configure 选项:

./configure --prefix=/usr/local/php/56 --with-openssl=/usr/local/opt/openssl

configure 通过,但是在 make的时候出现错误:


make 错误信息如下:
Undefined symbols for architecture x86_64:
  "_PKCS5_PBKDF2_HMAC", referenced from:
      _zif_openssl_pbkdf2 in openssl.o
  "_TLSv1_1_client_method", referenced from:
      _php_openssl_setup_crypto in xp_ssl.o
  "_TLSv1_1_server_method", referenced from:
      _php_openssl_setup_crypto in xp_ssl.o
  "_TLSv1_2_client_method", referenced from:
      _php_openssl_setup_crypto in xp_ssl.o
  "_TLSv1_2_server_method", referenced from:
      _php_openssl_setup_crypto in xp_ssl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/cli/php] Error 1

mac 自带的 openssl 是 0.9.6 ,我用brew 重新安装了

brew install openssl

安装之后是 OpenSSL 1.0.2e 3 Dec 2015

google之后发现好多人也碰到这个问题,但是没找到解决方案,有人碰到过则个问题吗?


展开
收起
kun坤 2020-05-25 20:35:51 537 0
1 条回答
写回答
取消 提交回答
  • brew install openssl

    安装之后是 OpenSSL 1.0.2e 3 Dec 2015

    google之后发现好多人也碰到这个问题,但是没找到解决方案,有人碰到过则个问题吗?

    2020-05-26 13:13:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载
PHP安全开发:从白帽角度做安全 立即下载
复杂PHP系统性能瓶颈排查及优化 立即下载