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, 12:13 PM   #1
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,171

Rep: Reputation: 60
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, 03:30 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 03: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, 08:13 AM   #4
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,171

Original Poster
Rep: Reputation: 60
sweet, thanks
Old 02-01-2008, 09:14 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,451
Blog Entries: 4

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:09 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