Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

./configure can't find evp.h

Tags:

linux

php

debian

I've installed the following packages on my Debian 6.0, after setting my versions in the sources.list to 7.0:

  • libssl-dev
  • openssl
  • openssl-common

I've verified that /usr/include/openssl/evp.h exists with a permission of 777, and then I've ran ./configure like this:

./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

However, I still get an error from configure that evp.h could not be found.

like image 654
Parham Doustdar Avatar asked Apr 20 '14 10:04

Parham Doustdar


1 Answers

I was struggling with this problem for a long time, and this ended up working for me:

Instead of --with-openssl-dir=/usr/include/openssl just use --with-openssl

like image 64
jlewkovich Avatar answered Oct 12 '22 22:10

jlewkovich