LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-20-2007, 02:56 PM   #1
NeilJones
LQ Newbie
 
Registered: Apr 2007
Posts: 17

Rep: Reputation: 0
Where is CPAN? How do I install new module?


I am doing something in PERL and I find I am missing a module.
The normal way that I add this is to use CPAN but I cannot seem to get it working it just returns command not found and a search shows lots of CPAN related files.

Where is it? How do I run it? and if these are not appropriate questions How do I add a new PERL module.

I am running Mandriva 2007
 
Old 12-20-2007, 03:28 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
perl -MCPAN -e 'shell'
 
Old 12-20-2007, 03:29 PM   #3
eagleheart
Member
 
Registered: Apr 2007
Location: Athens, Georgia, USA
Distribution: kubuntu 12.04, centos 6.3
Posts: 31

Rep: Reputation: 16
are you starting out by typing(*):

perl -MCPAN

?

(*)if so, 1) is it saying the command perl is not found? (normally in /usr/bin. Check your path) OR
2) is it saying the Module CPAN is not found?

(*)if not, please post your input that is failing.

BTW you can always do a search on www.cpan.org for the module you need, download it directly, and build it locally.

HTH JohnI
 
Old 12-21-2007, 03:33 AM   #4
NeilJones
LQ Newbie
 
Registered: Apr 2007
Posts: 17

Original Poster
Rep: Reputation: 0
I am using "cpan module-name" which has always worked to install the module on other linux versions. It is apparently present somewhere because "Man cpan " works.
 
Old 12-22-2007, 02:59 PM   #5
eagleheart
Member
 
Registered: Apr 2007
Location: Athens, Georgia, USA
Distribution: kubuntu 12.04, centos 6.3
Posts: 31

Rep: Reputation: 16
You're right, cpan is an executable -

/usr/bin/cpan
...it's part of the basic perl install (5.8.8) on both centos and slackware.

what is the output of

Code:
which cpan
If not found, maybe the permissions only allow root to access. I don't really know.

So one alternative, Try the form kotnik suggested above...

Or go directly to the cpan site.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
perl module Audio::MPEG CPAN install secesh Programming 6 08-12-2014 09:53 PM
CPAN install failure wardjame Linux - Software 1 01-28-2007 09:49 AM
How do I install cpan? abefroman Linux - Software 1 11-16-2005 11:28 PM
Unable to install Perl module via CPAN Sparky.Watson Linux - Software 1 08-24-2005 08:23 PM
perl module Audio::MPEG CPAN install secesh Linux - Software 0 09-17-2004 01:55 PM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration