LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 609|回复: 2

怎么修改编译完后的php

[复制链接]
发表于 2009-7-27 14:17:55 | 显示全部楼层 |阅读模式
编译安装 php时忘记把curl加上了,怎么加上?还要重新./configure --prefix=/opt/php-5.2.10 --with-curl xxxxxxxx
这样重新编译吗?
发表于 2009-7-27 17:26:21 | 显示全部楼层
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
回复 支持 反对

使用道具 举报

发表于 2009-7-27 17:27:26 | 显示全部楼层
这个方法似乎除了apxs,别的都可以编译成动态模块。
记得改php.ini,在extension节中加上模块哦
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表