Cannot find OpenSSL's <evp.h> (Apache)

Rick L.

Verified User
Joined
Jun 24, 2006
Messages
23
Location
Netherlands
Hello everybody,

I have a problem with updating PHP. When I give the command ./build php_ap2, I will get the following error:

checking for krb5-config... /usr/bin/krb5-config
checking for pkg-config... /usr/local/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>

*** There was an error while trying to configure php. Check the configure.php file


In my configure.php_ap2-file there's noting about OpenSSL:

#!/bin/sh
./configure \
--with-apxs2 \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-imap-ssl=/root/imap-2004d \
--with-imap=/root/imap-2004d \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit

I don't use OpenSSL, because otherwise Apache won't restart anymore (see this).

Does anybody know how I can get the configure.php_ap2-file working?

Thanks in advance,
Rick
 
I had the same error last week. Did you try the option "n" or "y". I am not sure which one it was that was 100% working for me. However one went through fine.
 
Thanks for your reply. Both options wont work for me.

I found a solution. I installed IMAP again and it works now.
 
Last edited:
See the URL given below. Hope this helps.

basilvarghese.co.cc/php-recompilation-errors-in-linux-work-arounds.html
 
Back
Top