configure: error: xml2-config not found. Please check your libxml2 installation
問題現象:
在安裝PHP是報錯如下:
解決方法:
由報錯資訊判斷可能是由於libxml2包沒有安裝造成
[root@nagios Packages]# rpm -qa|grep libxml2 --檢查是否有安裝
[root@nagios Packages]# rpm -ivh libxml2-2.7.6-1.el6.x86_64.rpm
[root@nagios Packages]# rpm -ivh libxml2-devel-2.7.6-1.el6.x86_64.rpm --安裝libxml2包
安裝之後檢查libxml2包是否存在:
[root@nagios Packages]# find / -name "xml2-config"
/usr/bin/xml2-config
重新安裝PHP
[root@nagios php-5.4.10]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
安裝成功如下:
重新編譯:
[root@nagios php-5.4.10]# make && make install
在安裝PHP是報錯如下:
解決方法:
由報錯資訊判斷可能是由於libxml2包沒有安裝造成
[root@nagios Packages]# rpm -qa|grep libxml2 --檢查是否有安裝
[root@nagios Packages]# rpm -ivh libxml2-2.7.6-1.el6.x86_64.rpm
[root@nagios Packages]# rpm -ivh libxml2-devel-2.7.6-1.el6.x86_64.rpm --安裝libxml2包
安裝之後檢查libxml2包是否存在:
[root@nagios Packages]# find / -name "xml2-config"
/usr/bin/xml2-config
重新安裝PHP
[root@nagios php-5.4.10]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
安裝成功如下:
重新編譯:
[root@nagios php-5.4.10]# make && make install
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27015256/viewspace-1064468/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PHP 5.4 編譯 configure: error: libXpm.(a|so) not found.PHP編譯Error
- 排錯./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either doErrorHTTPUIXML
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- 解決Error Initialization failed for ‘https://start.spring.io‘Please check URL, nErrorAIHTTPSpring
- 解決PHP 7.4安裝xdebug出現configure: error: rtnetlink.h is required, please...PHPErrorUI
- mpi4py安裝報錯error: Cannot compile MPI programs. Check your configuration!!!ErrorCompile
- No suitable application records were found. Verify your bundle ideUIAPPIDE
- 矽基流動 The parameter is invalid. Please check againAI
- windows cmd 提示 No JVM installation found.Please install a 32-bit JDKWindowsJVMJDK
- configure: error: libcurl >= 7.28.0 library and headers are required with suErrorHeaderUI
- AAPT2 error: check logs for detailsAPTErrorAI
- configure: error: libcurl >= 7.28.0 library and headers are required with support for httpsErrorHeaderUIHTTP
- Make sure you configure your "user.name" and "user.email" in git.AIGit
- would dispatch back to the current handler URL [/doLogin] again. Check your ViewResolver setup!AIView
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- ubuntu進行make時報錯error: Neither flex nor lex was found.UbuntuErrorFlex
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- pyenv docter檢測出configure: error: OpenSSL is not installed.解決方案Error
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try againErrorAI
- vs code jshint報錯或者Open browser failed!! Please check if you have installed the browser correctly!錯誤.JSAI
- 上傳報錯:Upload Failed: Your upload has failed a virus scan. Please choose another file.AI
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- IOMESH Installation
- Realcase: Failed to upgrade SQL Server 2016 SP2 CU11. (Installation success or error status: 1648)AISQLServerError
- 2.3.3.2 Application InstallationAPP
- 切換分支 error: Your local changes tby checkout: 錯誤解決方法Error
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQLMySqlJDBCExceptionError
- git pull遇到錯誤:error: Your local changes to the following files would be overwritten by merge:GitError
- A Tomcat 8.0 installation is expectedTomcat
- configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 supportErrorHeaderUI
- Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERRORAIDNNError
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.的錯誤ErrorUI
- Fontconfig head is null, check your fonts or fonts configuration 生產環境Centos伺服器報錯 本地沒問題NullCentOS伺服器
- InnoDB: No valid checkpoint found.