ubuntu 16.04|ubuntu 12.04安装PHP扩展模块

更新时间:2019-07-12    来源:Ubuntu    手机版     字体:

【www.bbyears.com--Ubuntu】

1.采用pear安装方式,如果没有装(apt-get install php-pear)。
sudo pecl install svn
安装SVN过程如果提示错误:
If you get
checking for svn includes... configure: error: failed to find svn_client.h
执行下面命令:
sudo apt-get install libsvn-dev
sudo pecl install svn
你会在/usr/lib/php5/20090626+lfs/找到svn.so
2. 配置php.ini
vi /etc/php5/apache2/php.ini  
增加:extension=svn.so

本文来源:http://www.bbyears.com/caozuoxitong/57605.html