php - ./configure 找不到 evp.h

标签 php linux debian

在将 sources.list 中的版本设置为 7.0 后,我在我的 Debian 6.0 上安装了以下软件包:

  • libssl-dev
  • 打开SSL
  • openssl-common

我已经验证了 /usr/include/openssl/evp.h 存在 7​​77 权限,然后我运行了 ./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/

相关文章:

php - jQuery Ajax : Cannot highlight text from ajax result

php - 使用 FPDF (PHP) 插入带有 alpha channel 的 PNG

python - 无法找到异常的来源以及它是什么异常

linux - apache2 配置测试失败。段错误(核心已转储)操作 'configtest' 失败

php - 如何将一个 url 传递的变量传递给另一个变量?

linux - Bash ~ 从目录的子目录中的脚本访问可能更改的目录

linux - Debian 8 上的 v4l2 构建错误

python - vmware 上的 Pyramid 服务器响应非常慢

linux - Debian CLI 安装到闪存驱动器

javascript - Codeigniter jquery ajax : post data to controller issues