LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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,190

Rep: Reputation: 60
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: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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,190

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

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration