我需要在 Windows 上安装 CUnit。我已经有一个带有标题的 CUnit 文件夹,但它在 Linux 中,而且我没有 Windows 的库。所以我下载了 CUnit-2.1.3 并尝试按照给定的步骤安装它,使用 mingw64。但它说这configure
是无法识别的。所以:
1)我必须安装 MSYS2,因为我没有找到任何方法来单独在 Mingw64 上获得所需的自动工具。
2)我不知道如何将我的 MSYS 与我的 Mingw64 构建链接(但老实说,我并不关心。我只是要安装 CUnit,然后忘记 MSYS2 并继续使用 Mingw64)
3)MSYS更新后,./configure
说No such file or directory
这里有一个提示:如何在 Windows 上安装 CUnit
但是答案对我不起作用。make 回馈了很多abnormal error
。但后来我发现了这个话题:Building CUnit on Windows并认为这是我的答案。几乎。
4) Libtoolize 无法识别,但我只需要找到它是哪个包并安装它。现在它说:
$ libtoolize
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize: '/usr/share/aclocal/ltversion.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
除了最后一个,我已经做了所有的改变,因为 Makefile.am 没有任何 ACLOCAL_AMFLAG,只有一个 RPM_FLAG。
5)automake并不好:
$ automake --add-missing
bash: $'\302\203automake' : command not found
pacman -S automake
solve dependencies
search for conflicts
Paquets (16) automake1.10-1.10.3-3 automake1.11-1.11.6-3
automake1.12-1.12.6-3 automake1.13-1.13.4-4
automake1.14-1.14.1-3 automake1.15-1.15.1-1
automake1.16-1.16.1-1 automake1.6-1.6.3-2 automake1.7-1.7.9-2
automake1.8-1.8.5-3 automake1.9-1.9.6-2 db-5.3.28-2
gdbm-1.18.1-2 libgdbm-1.18.1-2 perl-5.28.2-1
automake-wrapper-11-1
我安装了所有东西,但它仍然说“找不到命令”
我被困在这里。当然,我是在 MSYS2 shell 中制作的,而不是在 MinGW64 中制作的。它们仍然是分开的,除了第一次更新和我在这里所说的之外,我没有在 MSYS2 中安装任何东西。
任何想法?
编辑:在 HolyBlackCat 评论之后,我通过 MSYS 安装了 CUnit。但是,现在当我尝试启动测试(使用 MinGW64 shell)时,我得到一个abnormal program termination
with make70642.sh: fork failed: no error[1]
. 我尝试将我的 MinGW64 文件夹与 MSYS 下载的文件夹合并,但没有得到更好的结果。