当前位置: 移动技术网 > IT编程>开发语言>PHP > CentOS编译安装PHP常见错误及解决办法

CentOS编译安装PHP常见错误及解决办法

2019年04月20日  | 移动技术网IT编程  | 我要评论

1.configure: error: no curses/termcap library found

yum -y install ncurses-devel

 

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

yum -y install libxml2 libxml2-devel

 

3.configure: error: cannot find openssl’s

yum -y install openssl-devel

 

4.configure: error: libjpeg.(a|so) not found

yum -y install gd gd-devel

 

5.configure: error: could not find net-snmp-config binary. please check your net-snmp installation.

yum -y install net-snmp-devel

 

6.configure: error: cannot find output from lex; giving up

yum -y install flex

 

7.configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

yum -y install zlib-devel openssl-devel

 

8.configure: error: libxpm.(a|so) not found.

yum -y install libxpm-dev

 

9.configure: error: freetype.h not found.

yum install freetype-devel

 

10.configure: error: …no recognized ssl/tls toolkit detected

yum -y install libssl-dev

 

11.configure: error: please reinstall the bzip2 distribution

yum install bzip2 bzip2-devel

 

12.configure: error: please reinstall the libcurl distribution – easy.h should be in /include/curl/

yum install curl curl-devel 

 

13.configure: error: unable to locate gmp.h

yum install gmp-devel

 

14.configure: error: cannot find libpq-fe.h. please specify correct postgresql installation path

yum -y install postgresql-devel

 

15.configure: error: please reinstall the ncurses distribution

yum install ncurses ncurses-devel

 

16.checking for unixodbc support… configure: error: odbc header file ‘/usr/include/sqlext.h’ not found!

yum install unixodbc-devel

 

17.configure: error: cannot find pspell

yum install pspell-devel

 

18.configure: error: mcrypt.h not found. please reinstall libmcrypt.

yum install libmcrypt libmcrypt-devel

 

19.configure: error: snmp.h not found. check your snmp installation.

yum install net-snmp net-snmp-devel

 

20.开启ldap服务

yum -y install openldap-devel openldap-servers openldap-clients

 

21.configure: error: cannot find output from lex; giving up

yum -y install flex

 

22.configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

yum -y install zlib-devel openssl-devel

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网