Re: CPAN module in Cygwin

2004-11-03 Thread Elvin Peterson

--- Reini Urban wrote:

 Elvin Peterson schrieb:
  What do people here use to install perl modules
 (other
  than CPAN)?
 
 I use cpanplus (with a fixed reporter module) and
 cpan.
 
 recent cpanplus versions became kinda unstable for
 me with its Storage 
 module, but I had not time to fix it yet.
 
 cpansmoke and cpantest do work fine. but I stopped
 automatic cygwin 
 smoketests a couple of months ago.

Thanks for all the suggestions.  Are these part of
cygwin (or do they have to be installed separately?
:-))?  In any case running CPAN sends my machine to
OOM, so I am sticking to precompiled binaries for now.



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.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/



Re: CPAN module in Cygwin

2004-11-03 Thread Reini Urban
Elvin Peterson schrieb:
--- Reini Urban wrote:
Elvin Peterson schrieb:
What do people here use to install perl modules
(other
than CPAN)?
I use cpanplus (with a fixed reporter module) and
cpan.
recent cpanplus versions became kinda unstable for
me with its Storage 
module, but I had not time to fix it yet.

cpansmoke and cpantest do work fine. but I stopped
automatic cygwin 
smoketests a couple of months ago.
Thanks for all the suggestions.  Are these part of
cygwin (or do they have to be installed separately?
:-))?  
CPANPLUS not yet.
$ pmq -f CPANPLUS
0.049   /usr/lib/perl5/site_perl/5.8.5/CPANPLUS.pm
$ pmq -f CPAN
1.76_01 /usr/lib/perl5/5.8.5/CPAN.pm
In any case running CPAN sends my machine to
OOM, so I am sticking to precompiled binaries for now.
So fix your CPAN config file first, then you can
bootstrap the rest.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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/


Re: CPAN module in Cygwin

2004-11-03 Thread Gerrit P. Haase
Elvin Peterson wrote:
Thanks for all the suggestions.  Are these part of
cygwin (or do they have to be installed separately?
:-))?  In any case running CPAN sends my machine to
OOM, so I am sticking to precompiled binaries for now.
You can fetch any source package via ftp or from http://search.cpan.org/
and build and install them manually:
$ tar xzf package-name.tar.gz
$ cd package-name
$ perl Makefile.PL
$ make
$ make test
$ make install
Gerrit
--
=^..^=
--
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/


Re: CPAN module in Cygwin

2004-11-02 Thread Elvin Peterson

--- Yitzchak Scott-Thoennes wrote:

 
 
 On Sun, Oct 31, 2004 at 12:05:38PM -0800, Yitzchak
 Scott-Thoennes wrote:
  On Sat, Oct 30, 2004 at 01:14:08PM -0700, Elvin
 Peterson wrote:
 
 Sorry for originally not removing email address on
 the above line.
 
   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.
 
 It's more complicated than that; I wasn't able to
 duplicate this with a
 writable CPAN dir and a non-writable CPAN/Config.pm.
  If the CPAN dir
 is writable, CPAN.pm will unlink CPAN/Config.pm.bak,
 rename CPAN/Config.pm
 to CPAN/Config.pm.bak, and try to create a new
 CPAN/Config.pm.  I am
 unable to envision how you could have permissions
 set so that this wouldn't
 succeed.

The directory has full permissions for me, and the
file Config.pm has only read permission.

  
  You can find out what's missing by:
  
  perl -MCPAN::Config -MCPAN -wle'print for
 CPAN::Config-missing_config_data'
 
 Ouf of curiousity, what was missing?  Was the
 CPAN/Config.pm just the
 original 3 byte stub?

Yes, the file had just 3 bytes in it.  I managed to
compile one package after performing the workaround,
but it tried to install in the system directory, with
partial success (appending to some pod files failed).

What do people here use to install perl modules (other
than CPAN)?

TIA.

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



Re: CPAN module in Cygwin

2004-11-02 Thread Reini Urban
Elvin Peterson schrieb:
What do people here use to install perl modules (other
than CPAN)?
I use cpanplus (with a fixed reporter module) and cpan.
recent cpanplus versions became kinda unstable for me with its Storage 
module, but I had not time to fix it yet.

cpansmoke and cpantest do work fine. but I stopped automatic cygwin 
smoketests a couple of months ago.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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


Re: CPAN module in Cygwin

2004-10-31 Thread Reini Urban
Elvin Peterson schrieb:
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
It looks like it is trying to write to a file owned by
Administrator.  Is there a workaround to install
modules as a user?
root ownersip is okay. but it must be readable.
user-specific CPAN configs are stored in ~/.cpan/CPAN/MyConfig.pm
chmod +r /usr/lib/perl5/5.8.5/CPAN/Config.pm
chmod -R +rw /usr/lib/perl5/site_perl/5.8.5
chmod -R +rw ~/.cpan
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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/


Re: CPAN module in Cygwin

2004-10-31 Thread Elvin Peterson

--- Reini Urban [EMAIL PROTECTED] wrote:

 Elvin Peterson schrieb:
  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
  
  It looks like it is trying to write to a file
 owned by
  Administrator.  Is there a workaround to install
  modules as a user?
 
 root ownersip is okay. but it must be readable.
 user-specific CPAN configs are stored in
 ~/.cpan/CPAN/MyConfig.pm

I have read access for the file (as I do for all the
files in /usr/bin).  I don't have a $HOME/.cpan (the
script didn't get that far).

Thanks for the reply.




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: CPAN module in Cygwin

2004-10-31 Thread Yitzchak Scott-Thoennes
On Sat, Oct 30, 2004 at 01:14:08PM -0700, Elvin Peterson [EMAIL PROTECTED] 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

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



Re: CPAN module in Cygwin

2004-10-31 Thread Elvin Peterson
--- Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote:

 On Sat, Oct 30, 2004 at 01:14:08PM -0700, Elvin
 Peterson [EMAIL PROTECTED] 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/



Re: CPAN module in Cygwin

2004-10-31 Thread Yitzchak Scott-Thoennes


On Sun, Oct 31, 2004 at 12:05:38PM -0800, Yitzchak Scott-Thoennes wrote:
 On Sat, Oct 30, 2004 at 01:14:08PM -0700, Elvin Peterson wrote:

Sorry for originally not removing email address on the above line.

  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.

It's more complicated than that; I wasn't able to duplicate this with a
writable CPAN dir and a non-writable CPAN/Config.pm.  If the CPAN dir
is writable, CPAN.pm will unlink CPAN/Config.pm.bak, rename CPAN/Config.pm
to CPAN/Config.pm.bak, and try to create a new CPAN/Config.pm.  I am
unable to envision how you could have permissions set so that this wouldn't
succeed.
 
 You can find out what's missing by:
 
 perl -MCPAN::Config -MCPAN -wle'print for CPAN::Config-missing_config_data'

Ouf of curiousity, what was missing?  Was the CPAN/Config.pm just the
original 3 byte stub?

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



CPAN module in Cygwin

2004-10-30 Thread Elvin Peterson
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?

TIA.



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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