yum -y gcc install curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl openssl-devel libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 libcurl-devel wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz tar -zxvf libmcrypt-2.5.7.tar.gz cd libmcrypt-2.5.7 ./configure --prefix=/usr/local/libmcrypt make && make install wget -c http://cn2.php.net/get/php-7.0.4.tar.gz/from/this/mirror tar -zxvf mirror cd php-7.0.4 export PHP_OPENSSL_DIR=yes ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysql=/root/source/mysql-5.5.41-linux2.6-x86_64 --with-mysqli=/root/source/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/root/source/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php-7.0.4 --with-iconv --with-mcrypt=/usr/local/libmcrypt --with-freetype-dir==/usr/lib64/ --with-jpeg-dir=/usr/lib64/ --with-gd --enable-pcntl --enable-maintainer-zts -with-openssl-dir=/usr/include/openssl make & make install wget -c https://github.com/krakjoe/pthreads/archive/master.zip unzip master.zip cd pthreads-master/ /usr/local/php-7.0.4/bin/phpize ./configure --with-php-config=/usr/local/php-7.0.4/bin/php-config make make install 以上的pthreads安半不成功 就用下面的方法 wget https://github.com/krakjoe/pthreads/archive/v3.1.6.tar.gz cd pthreads-3.1.6/ /usr/local/php-7.0.4/bin/phpize ./configure --with-php-config=/usr/local/php-7.0.4/bin/php-config make make install echo "extension=pthreads.so" >> /etc/php.ini
php7 扩展安装pthread
原创hello_world007 博主文章分类:linux上的软件编译安装 ©著作权
©著作权归作者所有:来自51CTO博客作者hello_world007的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
PHP7安装扩展
php7安装redis、zip等扩展
PHP7 PHP 安装扩展 -
PHP7 安装 event 扩展
Libevent 是一个用C语言编写的、轻量级的开源高性能I/O框架,支持多种 I/
php event PHP git -
PHP7安装redis扩展
PHP7安装redis扩展
PHP7安装redis扩展 -
解决php7安装memcache扩展问题
解决php7安装memcache扩展问题
解决 php7 安装 memcache