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

php常用扩展安装

时间:2018-02-09 17:33:48      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:bit   oca   div   ibm   local   git   dir   github   build   

####memcache

wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar xf memcache-2.2.7.tgz
cd memcache-2.2.7
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

####memcached

wget http://pecl.php.net/get/memcached-2.1.0.tgz
tar xf memcached-2.1.0.tgz
cd memcached-2.1.0/
/usr/local/php/bin/phpize
./configure --enable-memcached --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached
make
make install

 

 

###phalcon


下载zip包 https://github.com/phalcon/cphalcon
unzip cphalcon-master.zip
cd /root/cphalcon-master/build/php5/64bits
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

###bcmath(其它扩展主要安装方法)

cd 到扩展目录下进行编译


cd /root/php-xx/ext/bcmath
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

 

php常用扩展安装

标签:bit   oca   div   ibm   local   git   dir   github   build   

原文地址:https://www.cnblogs.com/zhangb8042/p/8435978.html

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