Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20041031205059.44749.qmail@web52203.mail.yahoo.com> Date: Sun, 31 Oct 2004 12:50:59 -0800 (PST) From: Elvin Peterson Subject: Re: CPAN module in Cygwin To: cygwin AT cygwin DOT com In-Reply-To: <20041031200538.GA5664@efn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Note-from-DJ: This may be spam --- Yitzchak Scott-Thoennes wrote: > On Sat, Oct 30, 2004 at 01:14:08PM -0700, Elvin > Peterson wrote: > > Hello, > > The CPAN command: > > > > perl -MCPAN -e shell > > > > fails with: > > > > Cannot open >/usr/lib/perl5/5.8.5/CPAN/Config.pm > at > > /usr/lib/perl5/5.8.5/CPAN.pm line 1219 > > > > > CPAN::Config::_configpmtest('/usr/lib/perl5/5.8.5/CPAN', > > '/usr/lib/perl5/5.8.5/CPAN/Config.pm') called at > > /usr/lib/perl5/5.8.5/CPAN.pm line 1253 > > CPAN::Config::load('CPAN::Config') called at > > /usr/lib/perl5/5.8.5/CPAN.pm line 92 > > CPAN::shell() called at -e line 1 > > > > It looks like it is trying to write to a file > owned by > > Administrator. Is there a workaround to install > > modules as a user? > > After a *very* quick look at CPAN.pm, it looks like > your > CPAN/Config.pm is incomplete, so it tries to rebuild > it, but trips up > because it is not expecting the Config.pm file to > not be writable when > the CPAN/ directory is writable. > > This is IMO a CPAN bug. > > You can find out what's missing by: > > perl -MCPAN::Config -MCPAN -wle'print for > CPAN::Config->missing_config_data' > > As a workaround, you may just want to copy it to > ~/.cpan/CPAN/Config.pm and use > > perl -Mlib=$HOME/.cpan -MCPAN -eshell I've done that and it started up fine! Thanks for the help. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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/