分类: 系统运维
2009-07-20 13:39:08
cd ext
cd curl
phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-curl
(没有cnfigure?先到php的根目录执行configure,然后,该目录就会由configure了)
make
就会在PHPDIR/ext/curl/moudles/下生成curl.so的文件。
复制curl.so文件到extensions的配置目录,修改php.ini就好了
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension = "memcache.so"
extension = "curl.so"
extension = "imap.so"
关于imap:
configure:4221: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
安装libc-client.i386.rpm
./configure --with-php-config=/usr/local/php/bin/php-config --with-imap --with-kerberos --with-imap-ssl