【问题标题】:mpm-itk installation -- make: missing: Command not found on ubuntumpm-itk 安装 -- make: 缺失:在 ubuntu 上找不到命令
【发布时间】:2016-04-24 10:27:50
【问题描述】:

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

步骤:

  1. http://mpm-itk.sesse.net/tar.gz 文件下载
  2. 提取它们
  3. 运行./configure && make && sudo make install

我得到的错误:


    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

【问题讨论】:

  • 尝试复制错误消息 (make: missing: Command not found) 并将其粘贴到 Google。您会惊讶于您能以多快的速度找到解决方案。
  • @HéctorValverdePareja,我当然这样做了,但没有找到解决这个问题的方法,我创建了这篇文章。
  • 搜索上述内容后在 Google 中的第一个结果:askubuntu.com/questions/192645/make-command-not-found 如果您真的尝试过,请告诉我们您做了什么,什么失败了。
  • 我阅读了有关此链接的信息。并没有为我工作。我对 make 和 build-essential 没有问题。我有问题:缺少:找不到命令。
  • @ConstantinePopov 该命令不太可能被字面上称为“缺失”。如果有什么看起来 Makefile 有点坏了。

标签: linux ubuntu gcc makefile


【解决方案1】:

安装“make”命令并重试。

apt-get install make

【讨论】:

  • 没有。这个我已经安装了。正如您从帖子中看到的那样,我遇到了“缺少”命令的问题
  • 好的,您能否确认您已经安装了构建代码所需的所有软件包 sudo apt-get install build-essential
  • 相信你可以借助apt-get安装mpm-itk; $ sudo apt-cache search apache2-mpm-itk apache2-mpm-itk - apache2 的过渡 itk MPM 包 libapache2-mpm-itk - Apache 的多用户模块 sudo apt-get install apache2-mpm-itk
  • 不适合我。因为我需要 apache 2.4。如果我为这个包使用来自 ubuntu 存储库的 apache2-mpm-itk 需要 apache2.2。 apache2-mpm-itk : Depends: apache2.2-common (= 2.2.22-1ubuntu1.10) but it is not going to be installed Depends: apache2.2-bin (= 2.2.22-1ubuntu1.10) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
【解决方案2】:

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

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

例如对我来说

./configure --with-apxs=/etc/httpd/bin/apxs

【讨论】:

    【解决方案3】:

    您需要在 ubuntu 中未与 apache2 一起安装的 apxs,以使其运行以下命令

    sudo apt-get install apache2-dev
    

    然后重复步骤 3。

    【讨论】:

      猜你喜欢
      • 2020-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-20
      • 2015-04-04
      • 2013-02-06
      相关资源
      最近更新 更多