Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd /usr/src && git clone -b PHP-7.0.14 https://github.com/php/php-src --depth 1
- apt-get install make autoconf gcc bison apache2-dev libxml2-dev \
- libssl-dev pkg-config libbz2-dev libcurl4-gnutls-dev libjpeg-dev \
- libpng-dev libxpm-devel libfreetype6-dev libgmp-dev libicu-dev \
- libmcrypt-dev mysql-server libmysqlclient-dev libpspell-dev \
- librecode-dev libtool libtool-bin
- ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
- ln -sf /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
- ln -sf /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
- ./buildconf --force
- ./configure --prefix=/usr/local/php/7.0 \
- --with-config-file-path=/etc/php/7.0/apache2 \
- --with-config-file-scan-dir=/etc/php/7.0/apache2/conf.d \
- --enable-mbstring \
- --enable-zip \
- --enable-bcmath \
- --enable-pcntl \
- --enable-ftp \
- --enable-exif \
- --enable-calendar \
- --enable-sysvmsg \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-wddx \
- --enable-intl \
- --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 \
- --with-recode=/usr \
- --with-apxs2=/usr/bin/apxs \
- --with-mysqli=/usr/bin/mysql_config \
- --with-ldap
- sudo make clean
- sudo make -j `cat /proc/cpuinfo | grep processor | wc -l`
- make test
Advertisement
Add Comment
Please, Sign In to add comment