apache - 編譯安裝php的時候,--with-apxs2的路徑不知道是哪裡

來源:互聯網
上載者:User
環境:
SUSE Enterprise
apache是通過yast安裝的

yast2 --install apache2

我想再編譯安裝php,但是編譯安裝的時候,--with-apxs2的路徑不知道在哪裡

回複內容:

環境:
SUSE Enterprise
apache是通過yast安裝的

yast2 --install apache2

我想再編譯安裝php,但是編譯安裝的時候,--with-apxs2的路徑不知道在哪裡

你試試 find / -name apxs2,如果找不到,再試試find / -name apxs,我在CentOS上試了下,apxs2沒有找到,apxs倒是找到了,如果找到的是apxs,編譯時間換成--with-apxs=apxs的路徑試試

你也可以用which這個命令來找,比如:which apxs或which apxs2

Linux上的幾種尋找命令,可以看看該文章:http://www.ithr.org.cn/blogs/blog1.ph...

印象中這貨是apache2.x帶的apxs。因為是apache2.x,所以php那兒叫apxs2。

這貨應該是在apache的bin目錄下。如果用yum安裝的話,應當是在 /usr/bin 或者 /usr/local/bin 下面。使用which或者where來尋找一下就行了。

  • 聯繫我們

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