簡體   English   中英

./configure找不到evp.h

[英]./configure can't find evp.h

在將sources.list中的版本設置為7.0后,我在Debian 6.0上安裝了以下軟件包:

  • 的libssl-dev的
  • OpenSSL的
  • OpenSSL的常見

我已經驗證/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

這是php bug中的一個bug

原因是因為在運行命令'phpize'之后,configure腳本有一個未設置為“yes”的變量(PHP_OPENSSL_DIR)

所以你應該這樣做:

export PHP_OPENSSL_DIR=yes
./configure -with-openssl-dir=/usr/include/openssl

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM