无法在Arch Linux(EndeavourOS)上安装或编译mingw工具

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

在尝试为我的笔记本电脑安装 proton 时,我遇到了一个问题,即 mingw-w64-tools 包总是失败,退出代码为 4。

在尝试了几次之后,我最终尝试从源代码构建,这被证明是无用的,因为除非我使用“sh”运行 ./configure 文件(我使用 zsh 作为我的主 shell),否则命令将返回“没有权限”。然而,即使运行整个包的 ./configure 文件以及从 AUR 收到的工具包的 PKGBUILD,我总是会遇到不明确的错误,并且程序崩溃。对于 ./configure 文件,错误通常是

configure: error: source directory already configured; run "make distclean" there first
,而对于 pkgbuild,错误始终是
/mingw-w64-tools/src/mingw-w64-v10.0.0/mingw-w64-tools/gendef/configure: Permission denied
。有人能帮我解决这个问题吗?我在网上没有看到其他人有同样的问题。

linux build mingw mingw-w64 arch
1个回答
0
投票

我建议使用 AUR 安装质子

作为非 root 用户安装 aur 助手 yay

git clone https://aur.archlinux.org/yay.git

cd yay

makepkg -si

安装 yay 后您就可以

yay -S proton

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