LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-28-2008, 06:08 PM   #1
niner710
Member
 
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, 06:55 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Have a look at this
 
Old 04-28-2008, 07:26 PM   #4
niner710
Member
 
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, 09:20 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
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 09:21 AM.
 
  


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
scan now for module dependencies using libmodule-scandeps-perl cccc Linux - General 3 10-31-2007 12:41 PM
Perl module Compress::Zlib installed but perl not detecting it danran Programming 0 05-03-2007 01:50 PM
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
perl modules failed dependencies ziggie216 Linux - Software 5 01-14-2005 07: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 05:37 PM


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