Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2009 17:40:35 +0000
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: install-sh - permission denied
Message-ID:  <7B0CF60D16548E21BB5FED31@utd65257.utdallas.edu>
In-Reply-To: <4ADDF3FF.1080705@infracaninophile.co.uk>
References:  <7D877649A63342CB6EBBF48E@utd65257.utdallas.edu> <4ADDF3FF.1080705@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Tuesday, October 20, 2009 12:31:43 -0500 Matthew Seaman 
<m.seaman@infracaninophile.co.uk> wrote:

> 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
>

The problem is, I'm doing this as root.  :-(

-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B0CF60D16548E21BB5FED31>