configure时出现以下错误:
configure:error:cannot find output from lex,give up
此错误是说 缺少flex.rpm,从光盘中找到flex-%.i386.rpm,安装,重新编译php,
本人的解决办法:
configure: error: no acceptable cc found in $PATH
yum -y install gcc-c++
configure: error: cannot find output from lex; giving up flex is not installed, install flex.
yum -y install flex
configure: error: xml2-config not found. Please check your libxml2 installation.
yum -y install libxml2-devel
configure: error: Cannot find OpenSSL’s
yum -y install openssl-devel
configure: error: Please reinstall the BZip2 distribution
yum -y install bzip2-devel
configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/
yum -y install curl-devel
configure: error: libjpeg.(a|so) not found.
yum -y install libjpeg-devel
configure: error: libpng.(a|so) not found.
yum -y install libpng-devel
configure: error: freetype2 not found!
yum -y install freetype-devel
configure: error: Unable to locate gmp.h
yum -y install gmp-devel
configure: error: Cannot find pspell
yum -y install aspell-devel
缺哪一个,运行哪一行命令,装上后重新编辑php即可
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/359.html