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 12-28-2006, 11:03 AM   #1
stash1071
Member
 
Registered: Mar 2006
Distribution: Kubuntu 5.10
Posts: 35

Rep: Reputation: 15
Perl Module question


This might not fit in this forum, if not I aplogize in advance.

I'm trying to install a Perl module to my /home directory.
You have the classic install example.

perl Makefile.PL PREFIX=/path/to/where/you/want/it
make
make install

And then told to

use lib /path/to/where/you/want/it

to use the module.

So if I run

perl Makefile.PL PREFIX=/home/stash/lib
make
make install

I would expect the module to be at /home/stash/lib/TheModule.pm and have a "use lib /home/stash/lib"

But often it ends up at someplace like

/home/stash/lib/lib/perl5/site_perl/5.8.5/Config/IniFiles.pm

So then I would change PREFIX to /home/stash to get rid of the additional lib in the path but..

If I add a new module to a project, I dont want to have to add a use lib to every Perl file that will use it. I would like everything installed without the additional directories (perl5/site_perl...). Is there any way to do this? Thanks in advance
 
Old 12-28-2006, 11:44 AM   #2
stash1071
Member
 
Registered: Mar 2006
Distribution: Kubuntu 5.10
Posts: 35

Original Poster
Rep: Reputation: 15
Figures soon after I post I find a possible solution

perl Makefile.PL LIB=~/lib PREFIX=~/lib

Installs the module to /home/stash/lib/TheModule.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 datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
reinstall perl question.. (urpme perl) rjcrews Mandriva 2 01-28-2006 06:19 PM
basic perl module trscookie Programming 10 11-21-2005 12:46 AM
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
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 03:22 PM

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

All times are GMT -5. The time now is 07:49 PM.

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