You are here: Re: trouble configuring php with openssl « PHP Programming Language « IT news, forums, messages
Re: trouble configuring php with openssl

Posted by Andy Hassall on 09/14/06 22:57

On 13 Sep 2006 19:13:56 -0700, "laredotornado@zipmail.com"
<laredotornado@zipmail.com> wrote:

>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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация