LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-31-2008, 12:13 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Rep: Reputation: 58
CPAN and PERL Modules


From the CLI:

PHP Code:
 perl -MCPAN -e shell 
would

PHP Code:
cpaninstall XML::LibXML::SAX 
install the dependencies as well?
 
Old 01-31-2008, 03:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Depends on what you set on CPANs first run, when it prompts for configuration
data. Find your Config.pm and grep it for prerequisites_policy ....



Cheers,
Tink
 
Old 01-31-2008, 03:37 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You can also just set it to follow by executing the following within the shell.

Code:
cpan> o conf prerequisites_policy follow
HTH

Forrest
 
Old 02-01-2008, 08:13 AM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
sweet, thanks
 
Old 02-01-2008, 09:14 PM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
It's also worth mentioning that some distributions (like Gentoo) use Perl as the core-language of their maintenance system. To help protect that system, they ship slightly-unconventional defaults for fundamental things like the order of the @INC list.

You might therefore find yourself in a situation that is directly analogous to "installing Perl stuff on a shared-hosting system where you are not allowed to supersede the system defaults but must instead make a 'per-user' type of installation." Perl does support this, through facilities like PERL5LIB, PREFIX, and various CPAN configuration-settings. In fact, it does it quite well. But, it's not entirely obvious.

What those vendors are intentionally trying to ensure is, in fact, what you can thereby achieve, namely: you can set up your Perl any way that you like, without being able to inadvertantly "torch" the Perl configuration upon which the distro's maintenance-software depends.

Last edited by sundialsvcs; 02-01-2008 at 09:15 PM.
 
  


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 Modules Don't Install on Redhat 9 on a VDS from Lycos using Webmin and CPAN coyos Linux - Newbie 7 09-15-2006 09:26 PM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 07:31 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM
Canīt download perl modules with cpan emilioestevezz Linux - Networking 1 08-25-2004 09:51 AM


All times are GMT -5. The time now is 01:06 PM.

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