trouble configuring php with openssl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado@zipmail.com

    trouble configuring php with openssl

    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

  • Andy Hassall

    #2
    Re: trouble configuring php with openssl

    On 13 Sep 2006 19:13:56 -0700, "laredotornado@ zipmail.com"
    <laredotornado@ zipmail.comwrot e:
    >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_DI R; 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_S UFFIX_NAME; then
    OPENSSL_LIBDIR= $i/$PHP_LIBDIR
    fi
    test -n "$OPENSSL_INCDI R" && test -n "$OPENSSL_LIBDI R" && break
    done

    if test -z "$OPENSSL_INCDI R"; 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.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    Working...