原始碼安裝php

來源:互聯網
上載者:User

標籤:原始碼   軟體包   

1)   系統內容:CentOS6.6;

2)     PHP軟體包:php-5.4.35.tar、php-5.5.19.tar;

3)     任務:原始碼包方式安裝;

4)     問題:在配置兩個”PHP”軟體包版本的時候,都無法進行make,排除原始碼的問題;

5)     解決:由於配置環境的時候,依賴庫檔案,通過yum源安裝libxml2、libxml2-devel解決此問題;

6)     安裝過程如下:

[[email protected] tools]#tar php-5.4.35.tar.gz

[[email protected] php-5.4.35]#./configure

……………………………….

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

[[email protected] php-5.4.35]# make

make: *** 沒有指明目標並且找不到 makefile。 停止。 //該錯誤的原因,主要是缺少庫檔案

[[email protected]]yum install libxml2

[[email protected] php-5.4.35]yum install libxml2-devel –y

//通過以上yum源安裝庫檔案後,接下來的make、makeinstall都安裝通過。


本文出自 “營運” 部落格,請務必保留此出處http://sky9896.blog.51cto.com/2330653/1591386

原始碼安裝php

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.