+ -
当前位置:首页 → 问答吧 → 怎么修改编译完后的php

怎么修改编译完后的php

时间:2009-07-27

来源:互联网

编译安装 php时忘记把curl加上了,怎么加上?还要重新./configure --prefix=/opt/php-5.2.10 --with-curl xxxxxxxx
这样重新编译吗?

作者: rat911   发布时间: 2009-07-27

cd ~/php-5.2.10-src/ext/curl
~/php5/bin/phpize
./configure --with-php-config=~/php5/bin/php-config
make
cd modules
cp curl.so ~/php5/lib
下面的你就该会了吧?
hehe

作者: jilingshu   发布时间: 2009-07-27

这个方法似乎除了apxs,别的都可以编译成动态模块。
记得改php.ini,在extension节中加上模块哦

作者: jilingshu   发布时间: 2009-07-27