您的位置:首页 > 运维架构 > Linux

linux下安装zip扩展

2007-09-25 15:38 393 查看
应需要在php-4.4.4上添加zip扩展(注:php-5.2以后zip扩展是直接在php中的,只需要编译php时候添加--with-zip即可安装完毕),根据php官网资料如下:

==================

Linux systems

In order to use these functions you must compile PHP with zip support by using the --with-zip[=DIR] configure option, where [DIR] is the prefix of the » ZZIPlib library install.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

PHP 5.2.0 and later

Linux systems

In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

==================

所以

首先,必须安装ZZIPlib,故到此链接下载zziplib-0.10.76.tar.gz

./configure

make

make install

其次,重新编译php ,--with-zip编译其中

最后,重启apache,查看phpinfo.php是否存在zip扩展,如:

zip


Zip support enabled

表示安装成功!

其他可能方法可参考:

http://hi.baidu.com/eclosion/blog/item/a5c2a4c24c265b1b0ef477ea.html



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: