By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,220 Members | 1,542 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,220 IT Pros & Developers. It's quick & easy.

trouble configuring php with openssl

P: n/a
Hello,

I downloaded PHP 4.4.4 and am trying to install for Apache 2 on Fedora
Core 5. However when trying to configure with openssl, I get this
error,

configure: error: Cannot find OpenSSL's <evp.h>

That file is located in /usr/include/openssl/evp.h but when I put the
directory in the configure option

--with-openssl=/usr/include/openssl

I get the same error. What directory am I supposed to place in the
"--with-openssl" command?

Thanks, - Dave

Sep 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 13 Sep 2006 19:13:56 -0700, "la***********@zipmail.com"
<la***********@zipmail.comwrote:
>Hello,

I downloaded PHP 4.4.4 and am trying to install for Apache 2 on Fedora
Core 5. However when trying to configure with openssl, I get this
error,

configure: error: Cannot find OpenSSL's <evp.h>

That file is located in /usr/include/openssl/evp.h but when I put the
directory in the configure option

--with-openssl=/usr/include/openssl

I get the same error. What directory am I supposed to place in the
"--with-openssl" command?
PHP's configure script has the following (at least on 5.1.6):

for i in $PHP_OPENSSL_DIR; do
if test -r $i/include/openssl/evp.h; then
OPENSSL_INCDIR=$i/include
fi
if test -r $i/$PHP_LIBDIR/libssl.a -o -r
$i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
OPENSSL_LIBDIR=$i/$PHP_LIBDIR
fi
test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
done

if test -z "$OPENSSL_INCDIR"; then
{ echo "configure: error: Cannot find OpenSSL's <evp.h>" 1>&2; exit 1; }
fi

So you probably want --with-openssl=/usr ?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Sep 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.