Rootop 服务器运维与web架构

编译php-5.3.3时遇到的错误

| 暂无评论

configure: error: xml2-config not found. Please check your libxml2 installation.

[root@oracle Server]# yum install -y libxml2-devel

 configure: error: Cannot find OpenSSL’s <evp.h>
[root@oracle Server]# yum install -y openssl-devel

configure: error: Please reinstall the BZip2 distribution

[root@oracle Server]# yum install -y bzip2-devel

configure: error: Please reinstall the libcurl distribution –
    easy.h should be in <curl-dir>/include/curl/

[root@oracle Server]# yum -y install curl-devel

If configure fails try –with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.

[root@oracle Server]# yum install -y libpng-devel

如果安装了libpng及libpng-devel还报错,就需要将/usr/lib64/libpng.so复制到/usr/lib下,再次编译。

make: *** [libphp5.la] 错误 1
[root@oracle php-5.3.3]# yum install -y libtool-ltdl-devel

源码编译好痛苦···

PS:

apxs: /usr/sbin/apxs
比如说在编译安装配置httpd的时候,说需要apache下的apxs这个命令,那么很有可能就是跟httpd跟随的一个开发包,就是httpd-devel
再比如在编译内核的时候会需要ncurses-devel这个开发包,安装某些驱动软件的时候还需要kernel-devel开发包。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1231.html

作者:Venus

服务器运维与性能优化

发表回复