Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

When will just work?

by gunzip (Monk)
on Jan 24, 2005 at 00:17 UTC ( #424464=perlquestion: print w/replies, xml ) Need Help??
gunzip has asked for the wisdom of the Perl Monks concerning the following question:

Perl 5.8.6/OS X 10.3

I've done several new Perl installations lately and each time fails to get 3 important files to build its database:

  • authors/01.mailrc.txt.gz
  • modules/02packages.details.txt
  • modules/

A year ago I never had any such problems with What's gone wrong? Manual installation is not an option due to dependencies.

Replies are listed 'Best First'.
Re: When will just work? (pasv, http)
by tye (Sage) on Jan 24, 2005 at 04:52 UTC should try passive-mode FTP (without the user having to set an environment variable) and should have at least one HTTP mirror address to try built in.

    Modern computers are very often behind firewalls and defaulting to only trying non-passive FTP means that just doesn't work for a large number of casual users.

    - tye        

Re: When will just work?
by Zaxo (Archbishop) on Jan 24, 2005 at 00:21 UTC

    Did you try another mirror site?

    After Compline,

Re: When will just work?
by brian_d_foy (Abbot) on Jan 24, 2005 at 10:50 UTC

    We would have an easier time diagnosing your problem if you posted a transcript of one of your sessions. You've mostly likely not configured it correctly for your network situation.

    If you're network is very, very restrictive, you can set up a minicpan (using CPAN::Mini even) and install modules from a server on your internal network (or even from a CD).

    brian d foy <>
Re: When will just work?
by friedo (Prior) on Jan 24, 2005 at 03:07 UTC
    Using CPAN with FTP mirrors has been impossible for me. I don't know if it's a problem with my network configuration or what, but changing it to use only HTTP mirrors made it work fine, so I never bothered to solve the problem.
      I have had a similar problem. It's due to the somewhat broken File Transfer Protocol. If you set the environment variable FTP_PASSIVE to 1 and then run cpan things should work better for you. In the bash shell this looks like:
      export FTP_PASSIVE=1 perl -MCPAN -e shell

        In bash and zsh (and probably most other shells), you can also set the environment variable on a per-process basis like this:

        $ FTP_PASSIVE=1 perl -MCPAN -e shell

Re: When will just work?
by gmpassos (Priest) on Jan 24, 2005 at 22:47 UTC out of a Linux box is just sux! Actually even in the Linux box is not easy to use, since it still need to much configurations steps. is a very important tool, and really need to be fixed, or maybe rewrited! The dependencies bug at CPAN-Testers is still a big problem and no one is doing something to fix it!

    Who has CPAN working think that it's perfect, and it is. But is very common to not be able to configure easy the CPAN, specially due the FTP problem, and some modules CPAN is just not able to find the distribution.

    Graciliano M. P.
    "Creativity is the expression of liberty".

      I've found that, like much else, is far easier to configure and use if you RTFM. The system is not broken -- it does exactly what you ask it to. It merely assumes that you know something about your network configuration, or at least are aware that any automated-transfer system is served best by having several mirrors in different locations and using disparate protocols.

      You might also try reading up on the CPAN mirror list to determine which mirrors are best.

      In short, the FTP problem isn't a "problem" with CPAN -- you merely need to instruct to use Passive Mode. And the dependencies issues are usually the fault of either (a)the package maintainer, or (b)the mirror. Niether of those are solvable by the authors.

      As regards your claim that needs to be fixed or rewritten, if you really believe that you should stop griping about it and do it yourself. The thing is open-source, after all, and the module maintainers would probably love it if you submitted a patch that made genuine improvements. Yelling at volunteers who have written a module to make your life easier simply because you can't get it to work is unbelievably immature.

      Anima Legato
      .oO all things connect through the motion of the mind

        All of this configurations could be automatic! What I say is that it can be better, and the bugs that I have pointed doesn't exists in all OS and networks, but they are there and need to be fixed!

        Graciliano M. P.
        "Creativity is the expression of liberty".

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://424464]
Approved by superfrink
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-08-22 07:41 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (331 votes). Check out past polls.