首页 > 后端开发 > php教程 > osx 10.11 在 make php5.6.15的时候报错

osx 10.11 在 make php5.6.15的时候报错

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-06 20:24:20
原创
1215 人浏览过

出错信息如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

<code>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</code>

登录后复制
登录后复制

回复内容:

出错信息如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

<code>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</code>

登录后复制
登录后复制

这个我也遇到过,需要修改Makefile
找到 EXTRA_LIBS 将 openssl 的相关库都替换绝对路径

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
laravel - osx终端切换php-cli版本
来自于 1970-01-01 08:00:00
0
0
0
mongodb OSX系统下连接失败
来自于 1970-01-01 08:00:00
0
0
0
macos - mac osx 10.11 编译 git 2.6.1 报错
来自于 1970-01-01 08:00:00
0
0
0
git - 不小心删掉了本地的sshkey怎么办
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板