0

我通过git clone https://aur.archlinux.org/yay.git. 我进入目录并运行makepkg -sic,但不幸的是我得到了错误:

==> Making package: yay 10.1.0-1 (Mon 26 Oct 2020 06:25:36 AM +0330)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading yay-10.1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   118  100   118    0     0     97      0  0:00:01  0:00:01 --:--:--    97
100  339k  100  339k    0     0   103k      0  0:00:03  0:00:03 --:--:--  168k
==> Validating source files with sha256sums...
    yay-10.1.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-10.1.0.tar.gz with bsdtar
==> Starting build()...
go build -v -trimpath -mod=readonly -modcacherw -ldflags '-s -w -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.yayVersion=10.1.0" -X "main.localePath=/usr/share/locale/"' -buildmode=pie -o yay
go: github.com/Jguer/go-alpm/v2@v2.0.1: Get "https://gocenter.io/github.com/%21jguer/go-alpm/v2/@v/v2.0.1.mod": dial tcp 35.230.74.213:443: i/o timeout
make: *** [Makefile:127: yay] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
4

2 回答 2

0

exec: "gcc": $PATH 中找不到可执行文件

检查先决条件。见https://wiki.archlinux.org/index.php/Ar ... 存储库

但是大多数时候gcc都有问题,可以通过以下方式解决:

  1. pamac 安装基础开发
  2. 从列表中选择一个 gcc 编号
于 2021-02-06T15:47:28.067 回答
0

您是否一直收到错误?如果是这样,您用于构建的主机似乎无权访问 GoCenter。

于 2020-10-27T17:10:32.987 回答