Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 04-28-2008, 07:08 PM   #1
Registered: Apr 2008
Posts: 37

Rep: Reputation: 15
Linux and Perl module dependencies??

I installed Fedora 8 recently and wanted to port over some perl scripts that I have on my windows machine. The problem that I am running into is that I obviously can't run my perl scripts without the right perl modules, but it has been a huge pain downloading it. Is there any way to get the right perl modules and their dependencies easily on linux without getting them 1 by 1??
Old 04-28-2008, 07:55 PM   #2
Senior Member
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Are you using yum?
Old 04-28-2008, 08:13 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,562

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
Have a look at this
Old 04-28-2008, 08:26 PM   #4
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
I am using CPAN. Can I use yum to download perl modules too?
Old 04-28-2008, 10:20 PM   #5
Senior Member
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
I do not use CPAN but there are a ton of perl modules in the repo. yum info perl*
Old 04-29-2008, 10:18 AM   #6
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,536

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
Usually, it is best to "let YUM (or whatever package-manager)" maintain whatever it maintains, and if you use your-own CPAN modules, install them somewhere else.

Perl offers several ways to influence the so-called "@INC" list: the "use lib" directive, the PERL5ENV environment-variable and so on. Each of these methods prepends a directory to the search-list, which is consulted from front to back.

So... you let YUM maintain "its" Perl configuration (which might be relied-upon by other parts of the installation software!) and to see only "its" modules when "it" runs. Meanwhile, for your stuff, you use CPAN to put them into a separate directory and you make sure that this directory is in the search-path when "your stuff" runs. In this way, there is no conflict.

YUM maintains the core system libraries; you maintain your own stuff; when your-stuff runs, you make sure that your-libraries get found first by your-stuff.

The same principles are used in, say, a shared-hosting environment for a web-site, where the ISP provides a stock foundation layer of modules and "your site" provides "for your-site only" whatever differences "your site" needs. A thousand or more sites can be maintained, on one server, without conflict. There's a huge amount of stuff out there on the web which discusses this scenario, and it all applies directly to your case.

Last edited by sundialsvcs; 04-29-2008 at 10:21 AM.


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
scan now for module dependencies using libmodule-scandeps-perl cccc Linux - General 3 10-31-2007 01:41 PM
Perl module Compress::Zlib installed but perl not detecting it danran Programming 0 05-03-2007 02:50 PM
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 11:55 PM
perl modules failed dependencies ziggie216 Linux - Software 5 01-14-2005 08:01 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM

All times are GMT -5. The time now is 01:37 AM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration