From owner-freebsd-ports@FreeBSD.ORG Tue Oct 20 17:40:36 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58A32106566C for ; Tue, 20 Oct 2009 17:40:36 +0000 (UTC) (envelope-from prvs=5370a0f69=pschmehl_lists@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id 28B8F8FC14 for ; Tue, 20 Oct 2009 17:40:35 +0000 (UTC) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.44,592,1249275600"; d="scan'208";a="20299806" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 20 Oct 2009 12:40:35 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 68F254E75A; Tue, 20 Oct 2009 12:40:35 -0500 (CDT) Date: Tue, 20 Oct 2009 17:40:35 +0000 From: Paul Schmehl To: Matthew Seaman Message-ID: <7B0CF60D16548E21BB5FED31@utd65257.utdallas.edu> In-Reply-To: <4ADDF3FF.1080705@infracaninophile.co.uk> References: <7D877649A63342CB6EBBF48E@utd65257.utdallas.edu> <4ADDF3FF.1080705@infracaninophile.co.uk> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Ports Subject: Re: install-sh - permission denied X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 17:40:36 -0000 --On Tuesday, October 20, 2009 12:31:43 -0500 Matthew Seaman 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