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
標(biāo)題名稱:php7擴(kuò)展安裝pthread
分享URL:http://muchs.cn/article40/gehieo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供移動網(wǎng)站建設(shè)、網(wǎng)站收錄、建站公司、小程序開發(fā)、靜態(tài)網(wǎng)站、企業(yè)建站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)