Artix Linux Forum

Artix Linux => Package management => Topic started by: mardiyah on 18 January 2023, 09:19:25

Title: Error: chmod: changing permissions of '/Downloads/libxc/src':
Post by: mardiyah on 18 January 2023, 09:19:25
How solve this errror
Code: [Select]
makepkg -si PKGBUILD 
==> Making package: libxc 6.1.0-1 (Wed 18 Jan 2023 03:02:37 PM WIB)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
chmod: changing permissions of '/Downloads/libxc/src': Operation not permitted

when try install libxc from source package having PKGBUILD ?

Sincere help is really expected
Title: Re: Error: chmod: changing permissions of '/Downloads/libxc/src':
Post by: jspaces on 18 January 2023, 20:30:12
Code: [Select]
chmod: changing permissions of '/Downloads/libxc/src': Operation not permitted
If the directory in question is not in your user's home folder then one has to enable your user account's ownership.
In the example shown, it would be:
User name = mardiyah (or whatever your user name is)
User group = users (or whatever user group wanted)
Code: [Select]
# chown -R mardiyah:users /Downloads

You may want to change the path in your "/etc/makepkg.conf" file to place the built files into one location.
Code: [Select]
# vim /etc/makepkg.conf
<snipped>
PKGDEST=<input the path to the files>
<snipped>
Please check "man makepkg.conf" for more information or ARch's makepkg wiki page (https://wiki.archlinux.org/title/Makepkg).
Configuring makepkg.conf is important.

Title: Re: Error: chmod: changing permissions of '/Downloads/libxc/src':
Post by: mardiyah on 20 January 2023, 12:09:58
Yup, solved after get to dir:

Code: [Select]
sudo chown -R mardiyah .