mpm-itk安装 - make:missing:在ubuntu上找不到命令

时间:2016-04-24 10:27:51

标签: linux ubuntu gcc makefile

我在ubuntu上为apache 2.4安装mpm-itk

步骤:

  1. http://mpm-itk.sesse.net/ tar.gz文件
  2. 下载
  3. 提取它们
  4. 运行./configure && make && sudo make install
  5. 我得到的错误:

    
        checking for gcc... gcc
        checking whether the C compiler works... yes
        checking for C compiler default output file name... a.out
        checking for suffix of executables...
        checking whether we are cross compiling... no
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ISO C89... none needed
        checking for cap_init in -lcap... no
        checking for --with-apxs... no
        checking for apxs... missing
        configure: creating ./config.status
        config.status: creating Makefile
        config.status: creating config.h
        config.status: config.h is unchanged
        missing -c mpm_itk.c seccomp.c
        make: missing: Command not found
        make: *** [mpm_itk.la] Error 127
    
    

2 个答案:

答案 0 :(得分:0)

安装" make"命令并再试一次。

apt-get install make

答案 1 :(得分:0)

运行./configure时,需要为apxs添加前缀。如果apxs它不是你的PATH的一部分,它将不会被拾取并且你得到“遗漏”错误

./configure --with-apxs=WHERE_YOU_INSTALLED_APACHE/bin/apxs

e.g。对我来说

./configure --with-apxs=WHERE_YOU_INSTALLED_APACHE/bin/apxs