Paul Schmehl wrote:
I'm working on a new port, and I'm getting this error during make install:

test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin"
.././install-sh: Permission denied

Can anyone tell me why I'm getting this?

My system is 7.2 STABLE
7.2-STABLE FreeBSD 7.2-STABLE #13: Thu Sep 24 09:02:53 CDT 2009

Ports are csuped daily.


At a guess, it's because you don't have sufficient permissions to run
.././install-sh with the arguments shown.  Now, one fairly obvious reason
why this wouldn't work is that .././install-sh isn't marked executable for
your UID.  Judging by the file name, this is a shell script, so also check
that your UID has sufficient permissions to run the shell on the #! line
of the script too.

I can't really tell just by looking at the command names, but I'm guessing
that this command creates /usr/local/bin as a directory if it doesn't already
exist.  Basically an obscurantist and over-engineered way of running a simple:

  # mkdir -p /usr/local/bin

This is entirely unnecessary when dealing with the ports.  You may take it
as read that the basic layout of directories under /usr/local will have been
created for you by using mtree(8) and /etc/mtree/BSD.local.dist

        Cheers,

        Matthew

--
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                 Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to