Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Sep 10, 2008 2:11 pm 
Offline
Senior Newbie

Joined: Wed Sep 10, 2008 1:58 pm
Posts: 16
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


Top
   
 Post subject:
PostPosted: Wed Sep 10, 2008 4:12 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
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'.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Wed Sep 10, 2008 4:33 pm 
Offline
Senior Newbie

Joined: Wed Sep 10, 2008 1:58 pm
Posts: 16
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/perfect_setup_debian_etch_p4

-- 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


Top
   
PostPosted: Thu Sep 11, 2008 6:49 pm 
Offline
Junior Member
User avatar

Joined: Thu Sep 11, 2008 6:46 pm
Posts: 36
Website: http://www.classhelper.org
Location: Atlanta, GA
If you find yourself working with a system that seems to be having this sort of trouble, try typing:

Code:
perl -MCPAN -e 'shell'

_________________
Educational resources for parents and teachers: http://www.ClassHelper.org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group