Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I'm stuck compiling PHP 5.2.9 on Ubuntu 8.04 32b Server. ./configure seems to ignore all paths I'm providing it. Given: a clean Ubuntu install. sudo apt-get update sudo apt-get ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    3

    PHP ./configure paths; Ubuntu 8.04 Server

    Hello,

    I'm stuck compiling PHP 5.2.9 on Ubuntu 8.04 32b Server. ./configure seems to ignore all paths I'm providing it.

    Given: a clean Ubuntu install.

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install mysql-server

    sudo apt-get install build-essential libtool libltdl3-dev libmcrypt-dev libxml2-dev libmysqlclient15-dev flex m4 mawk automake autoconf bison make libbz2-dev libpcre3-dev libssl-dev zlib1g-dev vim re2c libjpeg-dev libpng12-dev libgd2-noxpm-dev libxml2-dev

    wget ttp://ru2.php.net/get/php-5.2.9.tar.gz/from/ru.php.net/mirror
    wget ttp://php-fpm.anight.org/downloads/head/php-5.2.8-fpm-0.5.10.diff.gz
    tar xzvf php-5.2.9.tar.gz
    gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.9 -p1
    # applying a PHP-FPM patch makes no sense

    cd php-5.2.9
    ./configure --enable-fastcgi --enable-fpm --enable-exif --with-mcrypt --with-zlib --enable-mbstring --with-openssl=/usr/include/openssl --with-mysql --with-mysql-sock --with-gd --with-gettext --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --disable-pdo --disable-reflection --with-libdir=lib64 --with-postgresql

    [error: Cannot find OpenSSL's libraries]


    Only if I manually edit ./configure:
    OPENSSL_LIBDIR=/usr/include/openssl
    OPENSSL_INCDIR=/usr/include/openssl

    the script goes on.

    Then it hangs on libjpeg error. Again, manually editing paths in a configure script allows it to move on. Then a libpng error.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Don't just install the development release of libraries but also libraries itself.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    Unfortunatelly, even after
    Code:
    sudo apt-get install libltdl3 mcrypt libxml2 libpcre3 zlib1g  libgd2-noxpm libxml2
    configure hangs up on OpenSSL error.

    Silent option "--with-openssl" produces "Cannot find OpenSSL's libraries." "--with-openssl=/usr/include/openssl" results in "Cannot find OpenSSL's <evp.h>." But evp.h is in /usr/include/openssl.

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    install libcurl4-openssl-dev
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    Thank you.

    What made sense was "--with-libdir=lib64". I was running "configure" in a 32 bit environment.

    That's the command that worked out for me:
    [code]./configure --enable-fastcgi --enable-fpm --enable-exif --with-mcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-gettext --enable-gd-native-ttf --without-sqlite --disable-pdo --with-pgsql[code]

  6. #6
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Thats strage normal configure script should not have --with-libdir=lib64 enabled directly.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...