Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Installing modules in personal lib directory - Just canīt make it work

by vishi83 (Pilgrim)
on Nov 20, 2005 at 05:40 UTC ( [id://510199]=note: print w/replies, xml ) Need Help??


in reply to Installing modules in personal lib directory - Just canīt make it work

Hi Andre !!

If you wanna install modules from CPAN to the lib directory of your choice, then i would suggest , install them manually without using the CPAN Shell...

As, tantaklus mentioned, you can run the MakeFile.PL with PREFIX and lib. That would be better and avoids confusion.


.. Ok, suppose you want to install a module , say HTML::Template from CPAN,

download the tar.gz file from CPAN and extract it, then you do the following,

perl Makefile.PL PREFIX=/home/andre INSTALLPRIVLIB=/home/andre/lib/per +l5 INSTALLSCRIPT=/home/andre/bin INSTALLSITELIB=/home/andre/l +ib/perl5/site_perl INSTALLBIN=/home/andre/bin INSTALLMAN1DIR= +/home/andre/lib/perl5/man INSTALLMAN3DIR=/home/andre/lib/perl5/m +an3 All these in a single line ..ok

As far as i know, I had given these lines

export PERL5LIB=/home/andre/lib
in bashrc .. Then give
source .bashrc so that the changes come to effect. Hope this is useful to you Andre !! If you find any other ways, do post it .. Am sure tantaklus too agrees to this..

Thank you ppl !!
vishi83

A perl Script without 'strict' is like a House without Roof; Both are not Safe;

Replies are listed 'Best First'.
Re^2: Installing modules in personal lib directory - Just canīt make it work
by Andre_br (Pilgrim) on Nov 21, 2005 at 02:31 UTC
    Hey vishi83 and Tanktalus!

    As you suggested it myght work, Iīve given up installing through CPAN shell, and did it manually. And finally, it worked! Thanks a lot folks!

    Take care!

    André

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found