Ubuntu 14.04 - компиляция php 5.3

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Ubuntu 14.04- компиляция php 5.3

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

# apt-get install libxml2 libxml2-dev libssl-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6-dev libmcrypt-dev libmysqlclient-dev make

# cd /tmp/ && wget -c http://ua2.php.net/get/php-5.3.29.tar.gz/from/this/mirror -O php-5.3.29.tar.gz && tar -xzvf php-5.3.29.tar.gz && cd php-5.3.29
# mkdir /usr/include/freetype2/freetype
# ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
# ./configure --prefix=/opt/php53 --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-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