Last active
August 23, 2018 14:53
-
-
Save nkarpeev/5d7f4e7d577bfc558864f372c915bc78 to your computer and use it in GitHub Desktop.
make php 7.2 from source
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
tar xzf php-7.2.6.tar.gz | |
apt-get install re2c | |
apt-get install flex | |
./buildconf --force | |
apt-get install git gcc gcc-c++ libxml2-devel pkgconfig | |
apt-get install openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel libXpm-devel | |
apt-get install gmp-devel libmcrypt-devel | |
apt-get install recode-devel bison re2c libicu-devel libaspell libaspell-devel aspell | |
mkdir /usr/local/php7 | |
./configure | |
--prefix=/usr/local/php7 | |
--with-config-file-path=/usr/local/php7/etc | |
--with-config-file-scan-dir=/usr/local/php7/etc/conf.d | |
--enable-bcmath | |
--with-bz2 | |
--with-curl | |
--enable-filter | |
--enable-fpm | |
--with-gd | |
--with-freetype-dir | |
--with-jpeg-dir | |
--with-png-dir | |
--enable-intl | |
--enable-mbstring | |
--with-pdo-pgsql | |
--with-pgsql | |
--disable-phpdbg | |
--disable-phpdbg-webhelper | |
--enable-opcache | |
--with-openssl | |
--enable-simplexml | |
--enable-xmlreader | |
--enable-xmlwriter | |
--enable-zip | |
--with-zlib | |
--enable-sockets | |
--enable-sysvsem | |
--enable-sysvshm | |
--enable-sysvmsg | |
make -j2 | |
make test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment