您的位置:首页 > 编程语言 > PHP开发

php安装常见错误

2013-09-29 16:08 357 查看


1.memcache support requires ZLIB解决办法


checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and
library are located

yum install zlib-devel



rpm -ihv zlib-devel-1.2.3-3.x86_64.rpm

2.安装完成后,出现memcache已经安装的提示:

  

Note: packaged extension modules are now loaded via the .ini files

; found in the directory /etc/php.d; these are loaded by default.

;;;;

在/etc/php.d/下已经生产memcache.ini的配置文件.所以,我们不需要手动去加.

3.checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and
library are located

  说白了就是在/usr/include/下找不到zlib.h头文件.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: