天天看點

php - configure: error: Can't find OpenSSL's evp.h

php - configure: error: Can't find OpenSSL's evp.h

/configure --prefix=/usr/local/php   --with-openssl=/usr/bin --with-curl=/usr/bin

編譯時總是出錯

原因如下:

1 确認安裝了openssl openssl-devl

2修改路徑為 /usr/sbin 或者 /usr/include/openssl

3 去掉路徑 直接 --with-openssl

本文轉自 holy2009 51CTO部落格,原文連結:http://blog.51cto.com/holy2010/360363