2016-11-22 157 views
0

我想從cpan安裝Apache :: Registry。而這位紳士需要apache2的源代碼,它無法找到。所以,它詢問我的下落。apache2源安裝在哪裏

Enter `q' to stop search 
Please tell me where I can find your apache src 
[../apache_x.x/src] 

所以,我安裝了apache2源代碼。

$ sudo apt-get install apache2-dev 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
The following NEW packages will be installed: 
    apache2-dev 
0 upgraded, 1 newly installed, 0 to remove and 267 not upgraded. 
Need to get 0 B/172 kB of archives. 
After this operation, 975 kB of additional disk space will be used. 
Selecting previously unselected package apache2-dev. 
(Reading database ... 175619 files and directories currently installed.) 
Preparing to unpack .../apache2-dev_2.4.18-2ubuntu3.1_amd64.deb ... 
Unpacking apache2-dev (2.4.18-2ubuntu3.1) ... 
Processing triggers for man-db (2.7.5-1) ... 
Setting up apache2-dev (2.4.18-2ubuntu3.1) ... 

現在,我重新啓動了安裝Apache :: Registry,但它仍然找不到apache2源代碼。哦,不用說,我必須自己去找。我在所有目錄中搜索此來源預計將無濟於事。那麼,從apache2-dev包中安裝apache源碼的默認位置在哪裏?

謝謝!

回答

0

apache2-dev軟件包只包含開發(頭文件)文件,而不是源本身(請參閱http://packages.ubuntu.com/trusty/httpd/apache2-dev)。

對於源代碼,您應該檢出git/svn回購站或訪問https://httpd.apache.org/download.cgi並在那裏下載源代碼。
沒有一個soure文件夾,但在服務器本身(server)與模塊,特定於os的文件等之間分開。

+0

'apt-get source apache2'獲取您當前安裝的Apache軟件包的準確來源,所有的Debian(或Ubuntu等)補丁。對於複雜的封裝,這可能與上游來源有很大不同。 – tripleee