Re: [SLUG] Problem using 'perl -MCPAN -e shell'

2003-08-23 Thread Michael Lake
Andrew McNaughton wrote:
On Fri, 22 Aug 2003, Michael Lake wrote:
This is a perl question. I have installed CPAN.pm which will pull down
and install packages via a shell like interface - its very similat to
[...]
Scanning cache yes/build for sizes
gzip: yes/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or
directory

I'd say the CPAN config process asced you for a path where you wanted to
store files while building stuff, and you answered 'yes'.  That's not a
path it can find, so everything screws up from there.
Two things there:

1. yes there is a place where it stores the files and I did find it 
strange that it created a directory called ~/yes/sources/authors rather 
than one under ~/.cpan
Therefore i suspect that you are right and I answered a question with 
'yes' and thats why its placed these author lists under that directory.

2.
locate CPAN/Config.pm
That file contains the preferences you set up.  
Yes I had looked at that and it says
'keep_source_where' = q[/home/mikel/yes/sources blah blah]
so it looks like the Config.pm file is looking in the directory that 
somehow was setup during initial configuration but that directory is 
wrong; it should not be ~/yes/sources/ but ~/.cpan/sources/

could just back it up somewhere and delete it, in which case
`perl -MCPAN -e shell` should ask you to provide the configuration details
yeah on Friday arvo I did run it all over again when it wasnt at first 
working and just as suggested by Angus ie
.. or type o conf init at the CPAN prompt.
and I again selected manual configuration and it again put ~/yes as the 
top level directoty. I will try again monday with close attention to the 
questions. I think somehow there is a question I am getting wrong.

Note I have just set it up using my Debian/GNU Alpha box using auto 
configuration and the sources dir was placed under ~/.cpan/sources.
It works fine, working out dependencies and getting them for me.
The one that didnt work is on my Debian/GNU box an powerpc

PS: How do ppl setup their system so that it can install the modules.
If one uses sudo what does one enter for the sudoers line as its a make 
install that would normally run. But entering that would allow possible 
security breaches.
ie something like
mikel   martel=NOPASSWD: /use/bin/make

--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Problem using 'perl -MCPAN -e shell'

2003-08-22 Thread Andrew McNaughton



On Fri, 22 Aug 2003, Michael Lake wrote:

 This is a perl question. I have installed CPAN.pm which will pull down
 and install packages via a shell like interface - its very similat to
 apt-get.

 Problem: it aint working.

 I neeed a perl guru. I had a brief look at cpan.org and their mailing
 list for cpan-interface archive and at the perl FAQ but cant see exactly
 the prob i get here.

[...]

 Scanning cache yes/build for sizes
 gzip: yes/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz: No such file or
 directory

I'd say the CPAN config process asced you for a path where you wanted to
store files while building stuff, and you answered 'yes'.  That's not a
path it can find, so everything screws up from there.

locate CPAN/Config.pm

That file contains the preferences you set up.  You could edit it, or you
could just back it up somewhere and delete it, in which case
`perl -MCPAN -e shell` should ask you to provide the configuration details
again.

Andrew


--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

---
Andrew McNaughton   In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Problem using 'perl -MCPAN -e shell'

2003-08-22 Thread Angus Lees
At Fri, 22 Aug 2003 21:15:35 +1200 (NZST), Andrew McNaughton wrote:
 That file contains the preferences you set up.  You could edit it, or you
 could just back it up somewhere and delete it, in which case
 `perl -MCPAN -e shell` should ask you to provide the configuration details
 again.

.. or type o conf init at the CPAN prompt.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug