[英]./configure can't find evp.h
在將sources.list中的版本設置為7.0后,我在Debian 6.0上安裝了以下軟件包:
我已經驗證/usr/include/openssl/evp.h
存在,擁有777的權限,然后我像這樣運行./configure:
./configure --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-mcrypt --disable-rpath --enable-inline-optimization --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --enable-opcache --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-openssl-dir=/usr/include/openssl
但是,我仍然從configure中得到錯誤,找不到evp.h。
我很長一段時間都在努力解決這個問題,最終為我工作了:
而不是--with-openssl-dir=/usr/include/openssl
只需使用--with-openssl
如果./configure ...
找不到/usr/include/openssl/evp.h
那么很可能你沒有安裝openssl,即標題。 因此,如果您使用的是CentOs,首先應該:
yum install openssl-devel
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.