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 ...
- 05-01-2009 #1Just 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.
- 05-01-2009 #2
Don't just install the development release of libraries but also libraries itself.
- 05-01-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 3
Unfortunatelly, even after
configure hangs up on OpenSSL error.Code:sudo apt-get install libltdl3 mcrypt libxml2 libpcre3 zlib1g libgd2-noxpm libxml2
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.
- 05-02-2009 #4
install libcurl4-openssl-dev
- 05-04-2009 #5Just 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]
- 05-05-2009 #6
Thats strage normal configure script should not have --with-libdir=lib64 enabled directly.


Reply With Quote