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

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB7C4C6084D8A730B98EFB75C
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Paul Schmehl wrote:
> I'm working on a new port, and I'm getting this error during make insta=
ll:
>=20
> test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin"
> .././install-sh: Permission denied
>=20
> Can anyone tell me why I'm getting this?
>=20
> My system is 7.2 STABLE
> 7.2-STABLE FreeBSD 7.2-STABLE #13: Thu Sep 24 09:02:53 CDT 2009
>=20
> Ports are csuped daily.
>=20

At a guess, it's because you don't have sufficient permissions to run
=2E././install-sh with the arguments shown.  Now, one fairly obvious reas=
on
why this wouldn't work is that .././install-sh isn't marked executable fo=
r
your UID.  Judging by the file name, this is a shell script, so also chec=
k
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 guessin=
g
that this command creates /usr/local/bin as a directory if it doesn't alr=
eady
exist.  Basically an obscurantist and over-engineered way of running a si=
mple:

   # mkdir -p /usr/local/bin

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

	Cheers,

	Matthew

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


--------------enigB7C4C6084D8A730B98EFB75C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkrd9AUACgkQ8Mjk52CukIxeQgCfQszd5A1or/NjitKiUltvncx5
BvoAoIat7xHElvKttQNptNGav31gPJ5A
=rVPf
-----END PGP SIGNATURE-----

--------------enigB7C4C6084D8A730B98EFB75C--



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