CentOS6.5 安装php_svn扩展

CentOS 安装php_svn扩展

安装subversion-devel

yum install subversion-devel neon neon-devel

安装php-pear

yum install php-pear

编译安装php_svn

http://pecl.php.net/package/svn 下载资源包 svn–1.0.2.tgz

tar zxf svn–1.0.2.tgz && cd svn–1.0.2
/usr/local/php/bin/phpize
./configure –with-svn=/usr/include/subversion–1/ –with-svn-apr=/usr/lib64/apr–1/ –with-php-config=/usr/local/php/bin/php-config
make && make install

修改php.ini

安装完毕之后会生成扩展文件到/usr/local/php/lib/php/extensions/no-debug-non-zts–20090626/svn.so

# 在php.ini中添加
extension="svn.so"

重启php

php_svn.jpg

发表评论