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;

In reply to Re: Installing modules in personal lib directory - Just canīt make it work by vishi83
in thread Installing modules in personal lib directory - Just canīt make it work by Andre_br

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.