无法加载动态库openssl.so

时间:2015-04-10 04:06:59

标签: php macos apache openssl composer-php

我只是在Mac 10.8 localhost上设置PHP和Apache。到目前为止它工作正常。 我现在正在安装Symfony2。当我运行Composer安装命令时,出现以下错误:

$ curl -s http://getcomposer.org/installer | php
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

我在php.ini中取消注释以下行:

extension=php_openssl.dll

但是我仍然得到同样的错误,在此消息之前:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll, 9): image not found in Unknown on line 0

我的/ usr / local / lib / php / extensions / no-debug-non-zts-20131226 /文件夹中确实没有openssl.so文件。 我尝试重新安装php但它没有任何区别。我用谷歌搜索了几个小时但我找不到用--with-openssl重新编译php的方法。任何帮助都会很有价值。

0 个答案:

没有答案
相关问题