You are not logged in.

#1 2021-11-15 00:19:13

j'maar
Member
Registered: 2021-11-15
Posts: 2

ERROR: A failure occurred in build(). Trying to install yay-git

I'm trying to install yay-git, but I keep on getting the following error:


[jamar@arch yay-git]$ makepkg -si
==> Making package: yay-git 11.0.2.r24.g4056109-1 (Mon Nov 15 00:15:45 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating yay git repo...
Fetching origin
==> Validating source files with sha256sums...
    yay ... Skipped
==> Extracting sources...
  -> Creating working copy of yay git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -trimpath -mod=readonly -modcacherw -ldflags '-X "main.yayVersion=11.0.2.r24.g4056109" -X "main.localePath=/usr/share/locale/" -linkmode=external' -buildmode=pie -o yay
failed to initialize build cache at /home/jamar/.cache/go-build: mkdir /home/jamar: permission denied
make: *** [Makefile:111: yay] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I dont understand how to fix this, please help

Offline

#2 2021-11-15 00:26:29

jonno2002
Member
Registered: 2016-11-21
Posts: 223

Re: ERROR: A failure occurred in build(). Trying to install yay-git

failed to initialize build cache at /home/jamar/.cache/go-build: mkdir /home/jamar: permission denied

check your permissions

Offline

#3 2021-11-15 03:35:30

j'maar
Member
Registered: 2021-11-15
Posts: 2

Re: ERROR: A failure occurred in build(). Trying to install yay-git

Thank you so much. I went into my home and made it changed the permissions

Offline

#4 2021-11-15 07:39:16

seth
Member
Registered: 2012-09-03
Posts: 25,113

Re: ERROR: A failure occurred in build(). Trying to install yay-git

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

ftr and the future, don't casually throw around sudo's tongue

Offline

#5 2021-11-15 08:03:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,507
Website

Re: ERROR: A failure occurred in build(). Trying to install yay-git

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MEG B550 UNIFY // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB