[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

CPAN.pm hates me--again



I can't get CPAN.pm to run--again.  Considering that
I have a local mirror in /CPAN, I'd love to use that.
But it never gives me a chance.  Here's what happens.
I find that when things are wrong, you never get a chance
to make them right!  Why isn't it letting me specify 
where to get things from?  Obviously, it's making a lot
of very bad default choices.

--tom

% rm -rf ~/.cpan
% perl -MCPAN -e shell

/home/doriath/tchrist/.cpan/CPAN/MyConfig.pm initialized.


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes] yes


The following questions are intended to help you with the
configuration. The CPAN module needs a directory of its own to cache
important index files and maybe keep a temporary mirror of CPAN files.
This may be a site-wide directory or a personal directory.



I see you already have a  directory
    /home/doriath/tchrist/.cpan
Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [/home/doriath/tchrist/.cpan] 


If you want, I can keep the source files after a build in the cpan
home directory. If you choose so then future builds will take the
files from there. If you don't want to keep them, answer 0 to the
next question.



How big should the disk cache be for keeping the build directories
with all the intermediate files?

Cache size for build directory (in MB)? [10] 


By default, each time the CPAN module is started, cache scanning
is performed to keep the cache size in sync. To prevent from this,
disable the cache scanning with 'never'.

Perform cache scanning (atstart or never)? [atstart] 


The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [follow] 


The CPAN module will need a few external programs to work
properly. Please correct me, if I guess the wrong path for a program.
Don't panic if you do not have some of them, just press ENTER for
those.

Where is your gzip program? [/bin/gzip] 
Where is your tar program? [/bin/tar] 
Where is your unzip program? [/usr/bin/unzip] 
Where is your make program? [/usr/bin/make] 
Where is your lynx program? [/usr/bin/lynx] 
Where is your ncftpget program? [/usr/bin/ncftpget] 
Where is your ftp program? [/usr/bin/ftp] 
What is your favorite pager program? [less] 
What is your favorite shell? [/bin/tcsh] 


Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in processes. If you have any parameters
(e.g. PREFIX, INSTALLPRIVLIB, UNINST or the like) you want to pass to
the calls, please specify them here.

If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command? [] 
Parameters for the 'make' command? [] 
Parameters for the 'make install' command? [] 


Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. As sometimes the Makefile.PL contains
question you're expected to answer, you can set a timer that will
kill a 'perl Makefile.PL' process after the specified time in seconds.

If you set this value to 0, these processes will wait forever. This is
the default and recommended setting.

Timeout for inactivity during Makefile.PL? [0] 


If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

Your ftp_proxy?  
Your http_proxy?  
Your no_proxy?  
You have no /home/doriath/tchrist/.cpan/sources/MIRRORED.BY
  I'm trying to fetch one

  Please, install Net::FTP as soon as possible. CPAN.pm installs it for you
  if you just type
      install Bundle::libnet


Trying with "/usr/bin/lynx -source" to get
    ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY

Looking up ftp.perl.org.
Making FTP connection to ftp.perl.org.
Can't Access `ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY'
Alert!: Unable to access document.

lynx: Can't access startfile 

Trying with "/usr/bin/lynx -source" to get
  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz

Looking up ftp.perl.org.
Making FTP connection to ftp.perl.org.
Can't Access `ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz'
Alert!: Unable to access document.

lynx: Can't access startfile 

Trying with "/usr/bin/ncftpget" to get
    ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
ncftpget: file retrieval error: PORT failed.

Trying with "/usr/bin/ncftpget" to get
  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz
ncftpget: file retrieval error: PORT failed.
Issuing "/usr/bin/ftp -n"
Local directory now /tmp_mnt/home/doriath/tchrist/.cpan/sources
Illegal PORT command.
ftp: bind: Address already in use
Bad luck... Still failed!
Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.

Please check, if the URLs I found in your configuration file () are valid.
The urllist can be edited. E.g. with ``o conf urllist push ftp://myurl/''

Cannot fetch MIRRORED.BY

You have no 
  I'm trying to fetch one
Usage: ->localize(cpan_file,as_local_file[,3]) at /opt/perl/5.005_63/lib/5.00563/CPAN/FirstTime.pm line 368
Exit 255


Follow-Ups from:
Nick Ing-Simmons <nik@tiuk.ti.com>
JVromans@squirrel.nl (Johan Vromans)

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]