CentOS 6 - php 5.4 компиляция
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
CentOS 6 - php 5.4 компиляция
# cd /tmp/ # wget -c http://es1.php.net/get/php-5.4.45.tar.gz/from/this/mirror -O php-5.4.45.tar.gz # tar -xzvf php-5.4.45.tar.gz && cd php-5.4.45 # yum install libxml2-devel bzip2-devel curl-devel libjpeg-devel libpng-devel libX11-devel gd-devel libc-client libc-client-devel libmcrypt-devel mysql-devel gcc openssl-devel
# ./configure --prefix=/opt/php54 --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-libdir=lib64 --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --enable-ftp --with-imap-ssl --with-kerberos --with-gettext --enable-cgi
# make && make install
Обращаем внимание на опцию --with-libdir=lib64 для x64 архитектуры.
Если mysql 5.5, то устанавливаем mysql-devel через remi:
# yum install --disablerepo=* --enablerepo=remi mysql-devel