Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

The download for the 'App-xml_grep2-0.14.tar.gz' perl module continually fails for me.

cpan http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/App-xml_grep2-0.14.tar.gz

Please login with USER and PASS

Passive mode off.
Please login with USER and PASS.
ftp: bind: Address already in use
share|improve this question
1  
Before going this route, make sure the module isn't available already as a package by your distribution. It is better to have the package management system keep track (and update, and ...) of stuff. Doing it by hand doesn't scale very far. –  vonbrand Feb 26 '13 at 17:02
add comment

1 Answer

Instead of giving cpan a URL, give a module name:

$ sudo cpan App::Xml_grep2

The only reasons I can think of to give a URL instead is if your module lives outside the CPAN directory, or you need a specific older version, rather than the current version.

I also find it odd that cpan is using FTP when you gave it an HTTP URL. I don't know why that is, but that leads you to the real problem, which is that it looks like it's trying active FTP and failing, probably because of a firewall that only works with passive FTP. The way out of this trap is to force cpan to use passive FTP.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.