如何在Linux上编译apache/httpd?

如何在Linux上编译apache/httpd?,apache,compilation,Apache,Compilation,我正在尝试在Linux上编译 它在repo中没有脚本/configure 它在repo中没有脚本 它也没有make的Makefile(默认值) 我无法从源代码处编译自述文件中的信息或repo中的安装文件 如何在Linux上编译?首先: ./buildconf 正如Senthil Kumaran回答他的问题一样,您可以添加——使用apr=/path/to/apr——使用apr-util=/path/to/apr-util 然后做剩下的 看 一个小教程来完成剩下的: 通常需要libssl、libn

我正在尝试在Linux上编译

  • 它在repo中没有脚本
    /configure
  • 它在repo中没有脚本
  • 它也没有make的
    Makefile
    (默认值)
  • 我无法从源代码处编译自述文件中的信息或repo中的安装文件

    如何在Linux上编译?

    首先:

    ./buildconf
    
    正如Senthil Kumaran回答他的问题一样,您可以添加
    ——使用apr=/path/to/apr——使用apr-util=/path/to/apr-util

    然后做剩下的

    一个小教程来完成剩下的:
    通常需要libssl、libnghttp2、libexpat、libpcre、apr、apr util

    ./configure --prefix=/path/to/install/apache --enable-mpms-shared=all --enable-mods-shared=reallyall
    
    然后:

    从下一次开始,要使用相同的配置:

    make clean && ./config.nice && make && make install
    

    当我尝试
    /buildconf

    以下步骤奏效了

  • 从Apache网站下载apr源代码
  • 从Apache网站下载apr util源代码
  • ./buildconf--with apr=/home/senthil/Downloads/apr-1.7.0/--with apr-util=/home/senthil/Downloads/apr-util-1.6.1

    /配置

    制造


    我必须将./buildconf指向apr和ap util源。
    make clean && ./config.nice && make && make install