| 會員 ![]() | 【求助】請教前輩在 compile PHP 時的一些觀念 - 2 我看文件 Apache 1.3 Dynamic Shared Object(DSO) Support 中有提及 2 個建立 DSO 的方式兩個 -- --------------------------------------------------------------------------------------------- [情況1.] Build and install a distributed Apache module,say mod_foo.c,into its own DSO mod_foo.so: $ ./configure --prefix=/path/to/apache/ install --enable-shared=foo $ make install [情況2.] Build and install a third-party Apache module,say mod_foo.c,into its own DSO mod_foo.so: $ ./configure --add-module=/path/to/3rdparty/mod_foo.c --enable-shared=foo $ make install --------------------------------------------------------------------------------------------- Q1: 首先,請教為何皆不需作 make 動作? Q2: 情況1 的 MODULE 是否屬於所謂的 APACHE 標準內建模組, 也就是可用 --enable-module / --disable-module 啟動與取消者? Q3: 不論情況1或2,日後若需再 recompile 該 module 時是否只需作如下動作即可? ./configure --with-apxs=/path/to/apache install/bin/apxs \ 其他想添加的功能選項 make make install Q4: 再看文件 Install PHP 時,提及以 DSO 來安裝 PHP 的方法如下: -------------------------------------------------------------------- $ ./configure --prefix=/path/to/apache install --enable-shared=so $ make $ make install $ cd ../php-xx $ ./configure --with-mysql --with-apxs=/path/to/apache install/bin/apxs $ make $ make install -------------------------------------------------------------------- 為何此處 PHP 的 DSO 安裝方式,既非屬於上述之 "情況1" 也非 "情況2" 呢? Q5: compile時下的 ./configure 參數1 參數2 指令會去更改 src/configuration 內容以作出合適的 makefile. 然,若下次有 recompile 需求時, 既然 "參數1" , "參數2" 是在首次 compile 時就已執行過者,則 recompile 時是否可以不用再指定一次,理由是因為 src/configuration 已被首次的 compile 更改過了,不知我這樣想對嗎? |
| 回覆 |
| |
類似的主題 | ||||
| 主題 | 主題作者 | 討論版 | 回覆 | 最後發表 |
| compile ASUS 3.5G WL-HDD's firmware 筆記(失敗) | thx | -- 網 路 硬 體 版 | 8 | 2010-04-11 05:53 PM |
| 請問使用yum 安裝apache2, php, mysql, php-mysql 的問題. | cpthk | -- FreeBSD & Linux 討 論 版 | 3 | 2005-09-23 12:29 AM |
| 【求助】請教前輩在 compile PHP 時的一些觀念 | b90220208 | ☉ -- 架 站 DIY 討 論 版 | 2 | 2005-06-21 03:19 PM |
| PHP-Nuke 及 PHP 好站 | kenlai | -- 優 質 網 站 分 享 | 2 | 2002-01-14 08:23 PM |
| XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。