On Thu, May 22, 2008 at 6:18 PM, Omer Zak <[EMAIL PROTECTED]> wrote:
> On Thu, 2008-05-22 at 17:22 +0300, Gabor Szabo wrote:
>> On Thu, May 22, 2008 at 4:50 PM, Omer Zak <[EMAIL PROTECTED]> wrote:
>> > I want to install, for a single user, Perl modules which are not already
>> > Debian packages, using cpan.
>>
>> You need to configure the CPAN shell to set these variables
>> I have the following in my CPAN shell config file
>> ( /home/gabor/.cpan/CPAN/MyConfig.pm )
>>
>> 'makepl_arg' => q[PREFIX=~/perl5lib LIB=~/perl5lib/lib],
>>
>> and to support modules that have Build.PL instead of Makefile.PL :
>>
>> mbuildpl_arg' => q[--install_base /home/gabor/perl5lib --install_path
>> lib=/home/gabor/perl5lib/lib],
>
> Thanks, the above worked for me (I hand-edited ~/.cpan/CPAN/MyConfig.pm
> after initial configuration).
>
> I found that once I add ~/perl5lib/bin to my path, the corresponding
> ~/perl5lib/man is added to the output of the 'manpath' command - so the
> system took care also of the path for installed manpages.

Oh and one more probably thing.
Don't forget to set

PERL5LIB = ~/perl5lib/lib

in your shell *before* you run the CPAN shell or it will install
prereqs but then it won't see them...

Gabor
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to