[英]configure: error: Cannot find OpenSSL's <evp.h> - Installing php imagick in Mac OS 10.9.4
[英]'openssl/evp.h' file not found OS x Mongodb
有一匹母馬。 我正在嘗試安裝最新的 PHP mongo DB 驅動程序。 我到處尋找並嘗試了所有建議的方法,但它不會通過此錯誤:
In file included from /private/tmp/pear/install/mongodb/src/contrib/php-ssl.c:31:
/private/tmp/pear/install/mongodb/src/contrib/php-ssl.h:33:10: fatal error: 'openssl/evp.h' file not found
include <openssl/evp.h>
^
1 error generated.
make: *** [src/contrib/php-ssl.lo] Error 1
ERROR: `make' failed
我的系統/設置:
OS X El Capitain v 10.11.6
PHP 7.1.0
阿帕奇
我正在使用這個命令來安裝它: sudo pecl install mongodb
我試過:
$ brew install openssl
$ brew link openssl --force
但這不再有效......並且任何最新的解決方法也不起作用
我什至嘗試過“無根”,但無濟於事。
這個解決方案對我有用。 如果您還沒有 openssl,請先運行brew install openssl
。 然后運行:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
需要做兩件事。 @ierdna 建議的那個是我工作所需的,但只有在我執行以下操作之后
~$ brew install openssl
~$ brew info openssl
按照 brew 的指示進行導出
~$ export LDFLAGS="-L/usr/local/opt/openssl/lib"
~$ export CPPFLAGS="-I/usr/local/opt/openssl/include"
然后按照 ierdna 告訴你的去做..
~$ cd /usr/local/include
~$ ln -s ../opt/openssl/include/openssl .
它立即對我有用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.