in reply to Re: Installing Perl modules automatically
in thread Installing Perl modules automatically

Thank you for the quick response.
Could you please be more specific about FTP issue because it is not quite clear for me why should check if it is possible to use ftp. In MyConfig.pm file I gave local URL and from the error log I can see that it was found:

Please check, if the URLs I found in your configuration file(file:////cygdrive/c/cygwin/home/ABC/local/LocalMirror/) are valid.

I can download and manually install modules from CPAN. I agree with you that, apparently cpan config is screwed up. But what exactly are those files and where I can find them?

Thanks
  • Comment on Re^2: Installing Perl modules automatically

Replies are listed 'Best First'.
Re^3: Installing Perl modules automatically
by Herkum (Parson) on Dec 08, 2007 at 15:32 UTC

    Could you please be more specific about FTP issue because it is not quite clear for me why should check if it is possible to use ftp

    the CPAN utility will use the ftp command-line utility to do FTP's. If it cannot find 'ftp', it cannot get the information from your mirror. It might be a search path problem for the user account or the utility got moved or deleted.

    Please check, if the URLs I found in your configuration

    I would not worry about that so much if you are getting the 'ftp' is missing error. You can be getting this error simply because of poor error handling on the part of the program.

      Thanks, a lot for your help

      I would not worry about that so much if you are getting the 'ftp' is missing error. You can be getting this error simply because of poor error handling on the part of the program.

      So, if I understand you correctly cpan using FTP protocol to get to my local mirror?
      the CPAN utility will use the ftp command-line utility to do FTP's. If it cannot find 'ftp', it cannot get the information from your mirror. It might be a search path problem for the user account or the utility got moved or deleted.

      Please correct me if I am getting you wrong, is CPAN using FTP protocol to connect to the local mirror?
        Prerequisites

        If you have a local mirror of CPAN and can access all files with ``file:'' URLs, then you only need a perl better than perl5.003 to run this module. Otherwise Net::FTP is strongly recommended. LWP may be required for non-UNIX systems or if your nearest CPAN site is associated with a URL that is not ftp:.

        If you have neither Net::FTP nor LWP, there is a fallback mechanism implemented for an external ftp command or for an external lynx command.