You are not logged in.

#1 2013-05-14 19:59:35

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

[Solved] Permissions problem /usr/bin/install: cannot create

I've been looking at this for quite a while now and am running out of ideas/inspiration. Google isn't helping and after reading the docs on the wiki, I'm still none the wiser.

So, I've compiled the source code properly but my PKGFILE is having a problem at the make install stage:

make[2]: Entering directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
/bin/sh ../mkinstalldirs /usr/bin
  /usr/bin/install -c foobillard /usr/bin/foobillard
/usr/bin/install: cannot create regular file ‘/usr/bin/foobillard’: Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/adam/Downloads/foo/src/foobillard-2.9/src'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

My PKGFILE can be seen at: http://pastebin.com/wrbZ6niq.

TIA

Last edited by kabads (2013-05-14 20:50:54)

Offline

#2 2013-05-14 20:20:23

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [Solved] Permissions problem /usr/bin/install: cannot create

RE-EDIT: view Karol solution

Last edited by sl1pkn07 (2013-05-14 21:15:35)

Offline

#3 2013-05-14 20:22:28

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Permissions problem /usr/bin/install: cannot create

kabads wrote:

and after reading the docs on the wiki, I'm still none the wiser.

What exactly have you been reading? Because if you take /usr/share/pacman/PKGBUILD.proto or read https://wiki.archlinux.org/index.php/Creating_Packages, you can't get to what you have without some serious changes. It seems like you took some bad and old PKGBUILD (not PKGFILE) as a starting point instead of more official/up-to-date docs.

At the very least you should read the section about the package() function.

Edit: now you can copy/paste from the above reply, but try to understand how makepkg works. And since you passed the prefix to ./configure, it's unlikely that you'll need it again for the install step.

Last edited by Raynman (2013-05-14 20:25:51)

Offline

#4 2013-05-14 20:23:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Permissions problem /usr/bin/install: cannot create

It's called PKGBUILD, not PKGFILE :-)

I don't see the error you posted, but I'm hitting this one: https://bbs.archlinux.org/viewtopic.php?pid=1216417

http://arm.konnichi.com/search/index.ph … ommunity=1 has foobillard 3, if you're  interested.

Have a look how to properly create a PKGBUILD: http://pastebin.com/MeXiLDV9

Offline

#5 2013-05-14 20:50:26

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

Re: [Solved] Permissions problem /usr/bin/install: cannot create

OK - using the latest example of PKGBUILD sorted this out - thanks for the pointer.

Offline

Board footer

Powered by FluxBB