[linux] PHP w/OpenSSL Compilation Error

Rohan S. =) rohan at washington.edu
Thu Sep 16 12:54:12 PDT 2004


I was able to download and install a slightly older version of OpenSSL
(0.9.6m). The PHP configure is finding it with no issue.

Thanks!
-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



More information about the Linux mailing list