【问题标题】:Installing autotools on MinGW - stuck in a loop在 MinGW 上安装自动工具 - 陷入循环
【发布时间】:2019-06-24 08:14:41
【问题描述】:

我正在尝试安装 autotools 一段时间,但没有成功。我需要 automake 来安装一个包 (xraylib)。

问题:

在尝试安装 automake 时,它​​告诉我需要 autoconfig 来安装它: configure: error: Autoconf 2.65 or better is required. Please make sure it is installed and in your PATH.

然后我尝试安装 autoconfig v.2.65,它告诉我需要先安装 M4: checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH. GNU M4 1.4.6 or later is required; 1.4.13 is recommended

所以最后我选择了 M4 v.1.4.9 它运行 ./configure 完全没有错误。我不知道是否需要make命令来完成安装,因为当我回到autoconfig时,运行时出现同样的错误./configure

我已经绕圈跑了好几个小时了。 票 Build m4, autoconf, automake, libtool on unix 没有帮助。

注意事项:

系统操作系统:Windows 10 Pro 使用 Git-Bash (mintyy 3.0.1)

我正在安装user\bin\ 下的所有软件包 我尝试将 m4 添加到 PATH。 (C:\Users\user\bin\m4-1.4.9)

【问题讨论】:

  • MinGW-w64 不是环境。您的意思是您正在使用设置了 mingw-w64 环境变量的 Windows 命令提示符?
  • 我安装了 MinGW 64 并使用它来运行东西,而不是通过 cmd 本身。但是如果 cmd 在后台运行,如果这是问题的话。 idk 每件事的技术术语,但总而言之,我使用的 git bash 终端版本是 Mintyy 3.0.1
  • 也许自动工具在 Git Bash 中不起作用。如果你找不到 Git Bash 的解决方案,那么一种选择是安装 MSYS2(它有一个包管理器,你可以从中安装 mingw-w64、git 和 autotools)。

标签: mingw autoconf automake mingw-w64 m4


【解决方案1】:

终于成功了MINGW64 "make build" error: "bash: make: command not found"

Vallabha Vamaravelli 回答如下:

  • 转到ezwinports,https://sourceforge.net/projects/ezwinports/files/

  • 下载make-4.2.1-without-guile-w32-bin.zip(获取不带guile的版本)

  • 解压压缩包

  • 将内容复制到 C:\ProgramFiles\Git\mingw64\ 合并文件夹,但不要 > 覆盖/替换任何现有文件。

【讨论】:

    猜你喜欢
    • 2020-11-19
    • 2010-11-09
    • 1970-01-01
    • 2019-11-12
    • 2017-03-05
    • 1970-01-01
    • 2021-02-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多