我通过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...
答案 0 :(得分:0)
您是否始终收到错误?如果是这样,则似乎您要用来构建的主机无权访问GoCenter。
答案 1 :(得分:0)
检查先决条件。请参阅 https://wiki.archlinux.org/index.php/Ar ... 存储库
但是大多数时候gcc有问题,可以通过以下方式解决: