无法在 MSYS2 MinGW x86 shell 上安装 make : mingw-w64-i686-gettext-runtime-0.22.5-2 和 mingw-w64-i686-gettext-0.21-3 存在冲突

问题描述 投票:0回答:1

我想安装一个 c++ 编译器并在 MSYS2 MinGW x86 shell 中进行编译

所以我打开这个 shell 并输入

MINGW32> pacman -S mingw-w64-i686-make

我得到了输出

resolving dependencies...
looking for conflicting packages...
:: mingw-w64-i686-gettext-runtime and mingw-w64-i686-gettext are in conflict. Remove mingw-w64-i686-gettext? [Y/n] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing mingw-w64-i686-gettext breaks dependency 'mingw-w64-i686-gettext' required by mingw-w64-i686-glib2
:: removing mingw-w64-i686-gettext breaks dependency 'mingw-w64-i686-gettext' required by mingw-w64-i686-libtre-git
:: removing mingw-w64-i686-gettext breaks dependency 'mingw-w64-i686-gettext' required by mingw-w64-i686-p11-kit
:: removing mingw-w64-i686-gettext breaks dependency 'mingw-w64-i686-gettext' required by mingw-w64-i686-xz

如果我对上述问题说“不”而不是“是”,这就是输出

imelf@DESKTOP-CFHKUQA MINGW32 ~
$ pacman -S mingw-w64-i686-make
resolving dependencies...
looking for conflicting packages...
:: mingw-w64-i686-gettext-runtime-0.22.5-2 and mingw-w64-i686-gettext-0.21-3 are in conflict. Remove mingw-w64-i686-gettext? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: mingw-w64-i686-gettext-runtime-0.22.5-2 and mingw-w64-i686-gettext-0.21-3 are in conflict (mingw-w64-i686-gettext<=0.22.4-3)

如果我尝试使用命令安装 C++ 编译器,则会得到相同的输出

pacman -S mingw-w64-i686-gcc

我对这个 gettext 遇到了同样的错误(我对此一无所知)

我尝试用

更新所有软件包
pacman -Suy

然后我又尝试了,但没有用。 任何帮助表示赞赏!

gcc gnu-make gettext msys2
1个回答
0
投票

只需使用以下命令更新 gettext:

pacman -S mingw-w64-x86_64-gettext

之后您可以安装您想要安装的任何内容。

© www.soinside.com 2019 - 2024. All rights reserved.