在将 sources.list 中的版本设置为 7.0 后,我在我的 Debian 6.0 上安装了以下软件包:
- libssl-dev
- 打开SSL
- openssl-common
我已经验证了 /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
但是,我仍然从配置中得到一个错误,找不到 evp.h。
最佳答案
我在这个问题上苦苦挣扎了很长时间,这最终对我有用:
代替 --with-openssl-dir=/usr/include/openssl
只需使用 --with-openssl
关于php - ./configure 找不到 evp.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23181096/