Действия

CentOS 6 - php 5.5 компиляция

Материал из Wiki - Iphoster - 'the best ever support'

Самые выгодные сервера‎


CentOS 6 - php 5.5 компиляция

# 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
# cd /tmp/
# wget http://de.php.net/get/php-5.5.32.tar.bz2/from/this/mirror -O php-5.5.32.tar.bz2
# tar -xjvf php-5.5.32.tar.bz2
# cd php-5.5.32
# ./configure --prefix=/opt/php55 --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 архитектуры.