Created
May 3, 2016 21:53
-
-
Save akkijp/27ee2d04c78ff313630426972ed524c7 to your computer and use it in GitHub Desktop.
php7 installation. Dose not work this script!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
set -e | |
if [ ! -x "`which php`" ]; then | |
if [ ! -e ./php-7.0.6 ]; then | |
wget -O "php-7.0.6.tar.gz" http://jp2.php.net/get/php-7.0.6.tar.gz/from/this/mirror && \ | |
tar xfvz ./php-7.0.6.tar.gz | |
fi | |
cd php-7.0.6 | |
SOURCE_DIR="echo $(cd $(dirname $0);pwd)" | |
BUILD_DIR=${SOURCE_DIR}/build | |
./configure \ | |
--enable-mbstring \ | |
--enable-zip \ | |
--enable-bcmath \ | |
--enable-pcntl \ | |
--enable-ftp \ | |
--enable-exif \ | |
--enable-calendar \ | |
--enable-sysvmsg \ | |
--enable-sysvsem \ | |
--enable-sysvshm \ | |
--enable-wddx \ | |
--with-curl \ | |
--with-mcrypt \ | |
--with-iconv \ | |
--with-gmp \ | |
--with-pspell \ | |
--with-gd \ | |
--with-jpeg-dir=/usr \ | |
--with-png-dir=/usr \ | |
--with-zlib-dir=/usr \ | |
--with-xpm-dir=/usr \ | |
--with-freetype-dir=/usr \ | |
--enable-gd-native-ttf \ | |
--enable-gd-jis-conv \ | |
--with-openssl \ | |
--with-pdo-mysql=/usr \ | |
--with-gettext=/usr \ | |
--with-zlib=/usr \ | |
--with-bz2=/usr \ | |
--with-recode=/usr \ | |
--with-mysqli=/usr/bin/mysql_config \ | |
--with-apxs2=/usr/bin/apxs2 \ | |
--with-tsrm-pthreads | |
make test && \ | |
make && \ | |
sudo make install && \ | |
cd .. && \ | |
sudo rm -fr ./php-7.0.6 ./php-7.0.6.tar.gz | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment