【发布时间】: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