【问题标题】:Where is the apache2 source is installedapache2源安装在哪里
【发布时间】:2016-11-22 17:41:06
【问题描述】:

我正在尝试从 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 源。哦,好吧,不用说,我必须自己寻找它。我在所有预期此来源无济于事的目录中进行搜索。那么,从 apache2-dev 包中安装 apache 源的默认位置在哪里?

谢谢!

【问题讨论】:

    标签: linux apache ubuntu lamp


    【解决方案1】:

    apache2-dev 包只包含开发(头)文件,而不是源代码本身(参见http://packages.ubuntu.com/trusty/httpd/apache2-dev)。

    对于源代码,您应该查看 git / svn 存储库或访问 https://httpd.apache.org/download.cgi 并在那里下载源代码。
    没有一个源文件夹,而是在服务器本身 (server) 和模块、特定于操作系统的文件等之间进行拆分。

    【讨论】:

    • apt-get source apache2 为您提供当前安装的 Apache 软件包的准确来源,以及所有 Debian(或 Ubuntu 等)补丁。对于复杂的包,这可能与上游来源完全不同。
    猜你喜欢
    • 2021-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多