- 論壇徽章:
- 0
|
主機(jī)環(huán)境 rhel5.5
在執(zhí)行 # ./configure --with-openssl=/usr/include/openssl --with-openssl-dir=/usr 時 總是出問題
提示:configure: error: Cannot find OpenSSL's <evp.h>
問題描述:
1. 在/usr/include/openssl 文件件夾下 已經(jīng)存在 evp.h 但是提示:找不到 configure: error: Cannot find OpenSSL's <evp.h>。
2. 當(dāng)我重新安裝openssl 時 openssl-0.9.8g.tar.gz
# tar xvf openssl-0.9.8g.tar.gz
# cd openssl-0.9.8g
# ./config --prefix=/usr/local/openssl
在安裝openssl時 設(shè)置了安裝路徑,在執(zhí)行編譯 php 此時執(zhí)行 ./configure --with-openssl=/usr/local/openssl/include/openssl --with-openssl-dir=/usr
時 就不會出現(xiàn)問題 (注:由于設(shè)置了openssl的安裝路徑 所以 --with-openssl=/usr/local/openssl/include/openssl 會有變化)。
當(dāng)我在默認(rèn)重新編譯安裝openssl 時 采取默認(rèn)安裝
# ./config
# make
# make without_doc
# make install
然后在執(zhí)行編譯 php 此時執(zhí)行 ./configure --with-openssl=/usr/local/ssl/include/openssl --with-openssl-dir=/usr/local 時 有出現(xiàn)上面的問題
之所以路徑不同可能是應(yīng)為重新安裝的openssl 的版本與原版本不同造成
解釋解釋 {:3_186:} |
|