安裝編譯器php
apt-get install build-essential autoconf automake libtool bison re2c
獲取php安裝包mysql
wget https://downloads.php.net/~ab/php-7.0.13RC1.tar.gz
安裝dev包linux
apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev
進行編譯安裝sql
./buildconf //用來生成configure腳本
./configure \ --prefix=/usr \ --with-config-file-path=/etc \ --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 \ --with-t1lib=/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
編譯 安裝curl
make && make install
報錯處理ui
aptitude search libcurl4 aptitude install libcurl4-gnutls-dev
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz tar -zxvf openssl-1.0.2j.tar.gz cd openssl-1.0.2j ./config make && make install
sudo apt-get install libgmp-dev libgmp3-dev ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
apt-get install librecode-dev
apt-get install libpspell-dev
apt-get install libmysqlclient15-dev
apt-get install libmcrypt-dev
apt-get install libxml2-dev