0

i'm trying to install this package https://github.com/w0ng/dwm to configure/customize dwm window manager.

the thing is that I need to use "makepkg" to install it. but when I do this "# makepkg -efi", it outputs error "Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system"

so I made a new user, and changed the permission of all the files using "chmod 777" to give all permissions.

and when I do this "$ makepkg -efi" , it gives error "You do not have write permission to create packages in /directory_name. Aborting..."

what should I do to make "makepkg" work ?

  • So it must be something with the permissions. Can you list the directory tree in which you want to build dwm? And also the permissions of the directories? These informations would be very interesting. Here is a link to the Arch Linux Forum which describe a similar problem like yours. – gr33ndeath Jul 17 '15 at 19:42
  • Is there a reason you're not installing dwm from the package repositories with pacman? – jayhendren Apr 14 '16 at 17:54
1

makepkg should never be used as root. This would be dangerous because you are building user-made unofficial packages from AUR.

Download the package as a normal user like:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz

Then extract the archive:

tar xvzf package-query

Then try to build it:

makepkg
0

Please try creating the folder and downloading the archive as your non-root user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.