apache2源安装在哪里

时间:2016-11-22 17:41:07

标签: linux apache ubuntu lamp

我正在尝试从cpan安装Apache :: Registry。而这位先生需要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源代码。哦,不用说,我必须自己去寻找它。我在所有预期此源的目录中搜索无效。那么,apache源应该从apache2-dev包安装一次的默认位置在哪里?

谢谢!

1 个答案:

答案 0 :(得分:1)

apache2-dev包只包含开发(标题)文件,而不包含源本身(请参阅http://packages.ubuntu.com/trusty/httpd/apache2-dev)。

对于源代码,您应该签出git / svn repos或访问https://httpd.apache.org/download.cgi并在那里下载源代码。
没有一个soure文件夹,但在服务器本身(server)和模块,特定于操作系统的文件等之间分开。