PhP 常見安裝錯誤configure error xml2-config not found. please check your libxml2 installation

來源:互聯網
上載者:User

標籤:php   編譯   

編譯PHP的時候報錯:

 安裝 PHP 5.4.3 報 configure error xml2-config not found. please check your libxml2 installation 錯誤

檢查是否安裝了libxm包

[[email protected] software]# rpm -qa |grep  libxml2  // 查看當前已經安裝點包

libxml2-2.6.26-2.1.12

libxml2-python-2.6.26-2.1.12

重新安裝libxml2和libxml2-devel包, yum安裝的時候發現新版本會提示更新,需要更新的可以更新,不要跳過就行了。

[[email protected] /]# yum install libxml2

[[email protected] /]# yum install libxml2-devel -y

安裝完之後尋找xml2-config檔案是否存在

[[email protected] /] # find / -name "xml2-config"

/usr/bin/xml2-config


本文出自 “辛舒展” 部落格,請務必保留此出處http://xinsz08.blog.51cto.com/10565212/1795744

PhP 常見安裝錯誤configure error xml2-config not found. please check your libxml2 installation

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.