码迷,mamicode.com
首页 > Web开发 > 详细

php7 扩展安装pthread

时间:2016-04-19 20:24:17      阅读:2053      评论:0      收藏:0      [点我收藏+]

标签:php   pthread   

yum -y install curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl-devel  libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 

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

./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

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

echo "extension=pthreads.so" >> /etc/php.ini


php7 扩展安装pthread

标签:php   pthread   

原文地址:http://quietnight.blog.51cto.com/7163892/1765370

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!