编译php时遇到的错误
error 1
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
lib库没装 先用 yum search 名字 看是否能搜到名字 ,找到名字后 把软件包 开发包装上
解决办法
yum install libxml2-devel.x86_64
error 2
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
ssl没装
解决办法
yum install openssl.x86_64 openssl-devel.x86_64 -y
error 3
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
bzip2软件包没有安装
解决办法
yum install bzip2-devel.x86_64 -y
error 4
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
curl和curl库文件没有安装
解决办法
yum install libcurl.x86_64 libcurl-devel.x86_64 -y
error 5
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: jpeglib.h not found
GD库没有安装
解决办法
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y
error 6
checking for stdarg.h... (cached) yes
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
libmcrypt库没有安装 ,要是不能用yum安装的话 就要去下载个gz包 自己编译安装
(编译安装 ./configure --piefix=/usr/local/libmcrypt make && make install)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error7
要是错误里面含有mysql的 那是mysql-devel 没有安装
configure: error: Cannot find ldap libraries in /usr/lib
解决办法:
cp -frp /usr/lib64/libldap* /usr/lib/
更多相关文章
- mysql安装后不能重新修改目录文件夹的名字?
- 【Python求助】在eclipse和pycharm中,通过adb install安装中文名
- Ubuntu 安装XAMPP集成环境软件包 与 运行WordPress 的简单方法
- LINUX主机名字规范
- linux mint 19安装 kvm 软件包
- 设置yum软件库轻松解决软件包安装问题
- 在SQL SELECT语句中重用别名字段
- mysql关键字与表名字段相同的解决方法
- Maven编译提示:软件包不存在