Can't install CPAN on Debian etch

I am a newbie to Linode, and have just deployed a Debian etch site.

I'm having trouble installing CPAN so I can use it install Perl modules. I tried to install using apt-get, but the system didn't find any versions. Next, I downloaded the CPAN.pm source and tried to build it, but I can't get past the perl Makefile.PL step. It's looking for ExtUtils/MakeMaker.pm in @INC, but can't find it in the @INC array. I tried downloading the source for ExtUtils/MakeMaker, but it wouldn't build either.

Any thoughts?

  • Chris Morgan

3 Replies

My first thought is to check if the modules you need are already available via apt-get to avoid CPAN altogether. The general convention is that module "Foo::Bar" is packaged as "libfoo-bar-perl", although there exceptions, for example libwww-perl contains a bunch of HTML and HTTP related modules. The command "apt-cache search 'Foo::Bar'" is your friend.

The second thought is that CPAN is a standard part of the perl distribution; try 'man cpan'.

Steve,

Many thanks! As it turns out, I just installed a group of programs, following the suggestions in the "perfect Setup" tutorial for Debian Etch at

http://www.howtoforge.com/perfectsetupdebianetchp4

– and now the cpan module is working from my terminal! It must have been enabled in the process. As you note, cpan is part of the standard Perl distribution, but for some reason, it wouldn't launch earlier. But I may just use apt-get for most, if not all, of my Perl modules, instead of cpan.

I didn't know about the 'apt-cache search' command, which is a very good thing indeed! Many thanks for the help. I'm enjoying apt-get a lot more than RedHat rpms (:->)

  • Chris

If you find yourself working with a system that seems to be having this sort of trouble, try typing:

perl -MCPAN -e 'shell'

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct