PHP7.0的编译安装

2017-01-13 08:17:30来源:CSDN作者:u012579604人点击

安装PHP之前请先安装Apache(如果你要使用Apache运行web环境)
我当前系统是Ubuntu16.04,CentOS相关的请自行更改或找我交流
“libxml2-dev bzip2 libssl-dev openssl libzip libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6 libfreetype6-dev libgmp-dev libgd2-xpm-dev libmcrypt-dev libreadline6-dev libxslt-dev”
注意更改自己的相关路径

./configure /--prefix=/www/soft/php /--with-config-file-path=/www/soft/etc /--enable-fpm /--with-fpm-user=ubt  /--with-fpm-group=ubt /--enable-inline-optimization /--disable-debug /--disable-rpath /--enable-shared  /--enable-soap /--with-libxml-dir /--with-xmlrpc /--with-openssl /--with-mcrypt /--with-mhash /--with-pcre-regex /--with-sqlite3 /--with-zlib /--enable-bcmath /--with-iconv /--with-bz2 /--enable-calendar /--with-curl /--with-cdb /--enable-dom /--enable-exif /--enable-fileinfo /--enable-filter /--with-pcre-dir /--enable-ftp /--with-gd /--with-openssl-dir /--with-jpeg-dir /--with-png-dir /--with-zlib-dir  /--with-freetype-dir /--enable-gd-native-ttf /--enable-gd-jis-conv /--with-gettext /--with-gmp /--with-mhash /--enable-json /--enable-mbstring /--enable-mbregex /--enable-mbregex-backtrack /--with-libmbfl /--with-onig /--enable-pdo /--with-mysqli=mysqlnd /--with-pdo-mysql=mysqlnd /--with-zlib-dir /--with-pdo-sqlite /--with-readline /--enable-session /--enable-shmop /--enable-simplexml /--enable-sockets  /--enable-sysvmsg /--enable-sysvsem /--enable-sysvshm /--enable-wddx /--with-libxml-dir /--with-xsl /--enable-zip /--enable-mysqlnd-compression-support /--with-pear /--enable-opcache /--with-apxs2=/www/soft/apache2.4/bin/apxs /--with-libdir=/lib/x86_64-linux-gnu #为了解决一种 openssl's 报错# 配置结束后make 或 make ZEND_EXTRA_LIBS='-liconv'(为了解决zend一种错误忘记了详细情况)make install常见报错configure: error: Unable to locate gmp.hln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台