Skip to content

Instantly share code, notes, and snippets.

@youyo
Last active February 10, 2016 06:00
Show Gist options
  • Select an option

  • Save youyo/e87cd5abe6594bcbc6ae to your computer and use it in GitHub Desktop.

Select an option

Save youyo/e87cd5abe6594bcbc6ae to your computer and use it in GitHub Desktop.
$ cd /usr/local/src/
$ wget http://museum.php.net/php5/php-5.2.17.tar.gz
$ tar xvzf php-5.2.17.tar.gz
$ cd php-5.2.17
$ cp -a /usr/lib64/apr-1/build/libtool libtool
$ yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel curl curl-devel libjpeg libjpeg-devel \
libpng libpng-devel libXpm libXpm-devel freetype freetype-devel t1lib t1lib-devel gmp gmp-devel libmcrypt libmcrypt-devel \
libmhash libmhash-devel readline readline-devel net-snmp net-snmp-devel libtidy libtidy-devel libxslt libxslt-devel patch \
libtool-ltdl libtool-ltdl-devel
$ LDFLAGS=-L/usr/lib64/mysql ./configure --enable-sigchild --with-openssl --with-kerberos --with-zlib --enable-bcmath \
--with-bz2 --with-curl --enable-exif --enable-ftp --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext \
--with-gmp --with-mhash --with-ldap --enable-mbstring --with-mcrypt --with-mysql=/usr/bin/mysql_config --enable-pcntl \
--with-pdo-mysql --with-mysqli=/usr/bin/mysql_config --with-readline --enable-shmop --with-snmp --enable-soap --enable-sockets \
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --enable-wddx --with-xsl --enable-zip --with-zlib-dir \
--with-freetype-dir=share --with-t1lib=share --with-xpm-dir --with-libdir=lib64 --with-tsrm-pthreads --enable-maintainer-zts \
--with-jpeg-dir=/usr --with-png-dir=/usr --with-apxs2=/bin/apxs --with-mcrypt=/usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment