delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/11/15:59:41

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Ian Puleston" <ian AT underpressuredivers DOT com>
To: <cygwin AT cygwin DOT com>
References: <047f01c95bcd$850a7c50$8f1f74f0$@com>
In-Reply-To: <047f01c95bcd$850a7c50$8f1f74f0$@com>
Subject: RE: Install error on Perl PROC::Background under Cygwin
Date: Thu, 11 Dec 2008 12:58:09 -0800
Message-ID: <048001c95bd3$2c263ba0$8472b2e0$@com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> -----Original Message-----
> From: Ian Puleston
> 
> I have perl 5.10.0 installed in cygwin, and I'm getting an error trying
> to install the Proc::Background module for it. "ERROR: Can't create
> '/usr/bin'; Do not have write permissions on '/usr/bin'"

That perl module uses the ExtUtils::Install module to install itself, so I
tried upgrading that to the latest and got a similar error trying to install
that one:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/lib/perl5/5.10/ExtUtils'
Do not have write permissions on '/usr/lib/perl5/5.10/ExtUtils'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

But then examining write permissions on that file led me to the cause. This
PC is logged into a Windows domain and in Cygwin my group is "Domain Users",
but for some reason the Cygwin installation directories had all been created
with group "Users" and with no write permission on directories including
/usr/bin. The following two commands, which needed to be run from an
elevated bash window, fixed it and allowed the perl module to install
properly:

[~]: chgrp -R "Domain Users" /cygdrive/c/Cygwin/    
[~]: chmod +w /usr/bin/

Ian



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019