[linux] PHP w/OpenSSL Compilation Error
Brian Haney
nautix at u.washington.edu
Thu Sep 16 12:57:02 PDT 2004
Rohan,
I was wondering if your version was substantially different from mine
(0.9.7a) which *has* evp.h. I don't know if older versions omitted that
file. It sounds like your OpenSSL installation does not have the header
files (or at least not all of them).
You can find the version of your current installation by entering
openssl version
What build error did you get?
Today, Rohan S. =) was quoted as saying:
> Brian,
>
> I haven't installed OpenSSL myself. I tried to install the latest (0.9.7d),
> but there was some sort of build error, so I figured that using the same
> --with-openssl=/usr/local/openssl flag that was used with the original PHP
> installation on students.washington.edu would work. Is there no other option
> than installing my own OpenSSL package?
>
> -Rohan Singh =)
> rohan at washington.edu
> (206) 235-6123
>
>
> -----Original Message-----
> From: linux-bounces at mailman.u.washington.edu
> [mailto:linux-bounces at mailman.u.washington.edu] On Behalf Of Brian Haney
> Sent: Thursday, September 16, 2004 12:06 PM
> To: Linux/Unix Users Group at the UW
> Subject: Re: [linux] PHP w/OpenSSL Compilation Error
>
> Which version of OpenSSL are you using?
>
> Today, Rohan S. =) was quoted as saying:
>
>> Since the version of PHP on the uniform access servers is a bit dated
>> (4.2.0), I decided to install my own versions of Apache and PHP. The
>> main reason I wanted to compile my own version is to enable PHP FTP
>> functions (via the --enable-ftp configuration option) so I could use
> ftp_ssl_connect.
>>
>> I managed to install Apache 1.3.26 without much hassle. It's up and
>> running at this URL:
>> http://vergil.u.washington.edu:8090/
>>
>> I then downloaded the PHP 4.3.8 source. I used phpinfo() to figure out
>> what configuration options had been used to compile PHP orginally. You
>> can see the phpinfo() output here:
>> http://students.washington.edu/rohan/phpinfo.php
>>
>> That shows that the original PHP configure command was:
>> ./configure --prefix=/usr/local/php4 --disable-force-cgi-redirect
>> --enable-discard-path --enable-shared=no --enable-static=yes
>> --with-openssl=/usr/local/openssl --sysconfdir=/usr/local/lib
>> --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql
>> --with-zlib=/usr/local/zlib --with-gd=/usr/local
>> --enable-gd-native-ttf --with-jpeg-dir=/usr/lib
>> --with-png-dir=/usr/lib --with-ibm-db2=/usr/local/db2inst/sqllib
>> --with-ldap=/usr/local/openldap
>>
>> To configure my PHP installation, I used basically the same
>> configuration
>> line:
>> ./configure --prefix=$HOME/apps/php4 --with-apache=$HOME/apps/apache
>> --enable-ftp --disable-force-cgi-redirect --enable-discard-path
>> --enable-shared=no --enable-static=yes
>> --with-openssl=/usr/local/openssl --sysconfdir=/usr/local/lib
>> --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql
>> --with-zlib=/usr/local/zlib --with-gd=/usr/local
>> --enable-gd-native-ttf --with-jpeg-dir=/usr/lib
>> --with-png-dir=/usr/lib --with-ibm-db2=/usr/local/db2inst/sqllib
>> --with-ldap=/usr/local/openldap
>>
>> The only differences between the oroginal configure command and mine
>> are that I configured the installation directory to be in a
>> subdirectory of my home directory, I explicitly pointed to my own
>> Apache installation, and I put in the --enable-ftp option to enable
>> PHP FTP functions. But when I try to run this command, I get the following
> error:
>>
>> Configuring extensions
>> checking for OpenSSL support... yes
>> checking for pkg-config... no
>> configure: error: Cannot find OpenSSL's <evp.h>
>>
>> I checked, and the /usr/local/openssl directory that is in the
>> configure command does actually exist. However, evp.h is nowhere to be
>> found. What puzzles me is that my --with-openssl flag is identical to
>> the original configuration flag, but it fails anyway. I need OpenSSL
>> support, so I can't just take out that flag. Does anyone know where I
> should go from here?
>>
>> Thanks in advance!
>> -Rohan Singh =)
>> rohan at washington.edu
>> (206) 235-6123
>>
>>
>
> --brian
>
>
--brian
More information about the Linux
mailing list