Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 59
CPAN and PERL Modules

From the CLI:

PHP Code:
 perl -MCPAN -e shell 

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

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

Old 01-31-2008, 04:37 PM   #3
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.

cpan> o conf prerequisites_policy follow

Old 02-01-2008, 09:13 AM   #4
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,151

Original Poster
Rep: Reputation: 59
sweet, thanks
Old 02-01-2008, 10:14 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,984

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
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 10:15 PM.


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 10:26 PM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 10:30 PM
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 08:31 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 01:29 PM
Canīt download perl modules with cpan emilioestevezz Linux - Networking 1 08-25-2004 10:51 AM

All times are GMT -5. The time now is 03:27 PM.

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