For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2006 > CPAN::Shell install into customer dir









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CPAN::Shell install into customer dir
JupiterHost.Net

2006-06-24, 9:58 pm

Howdy all :)

I've a plugin installer that installs certain Perl modules:

This is what it uses,

CPAN::Shell->expand('Module', $module_name)->install();

which works fine as long as root is running it.

What I'd like to do is install the modules as an unprivileged user into
/home/$user/perl

I tried setting $ENV{'PREFIX'}, $ENV{'PERL5LIB'}, to no avail.

Any one have any ideas if that can be done codewise without reverting to
a shell command

(
a) I want to use a module not shell out a command
b) I want to use CPAN so it follows dependencies instead of
Makefile.PL -> make etc etc

Any insight into what I've missed would be absolutely excellent :)

TIA!
Anthony Ettinger

2006-06-24, 9:58 pm

Isn't it PERL_PREFIX?

On 6/24/06, JupiterHost.Net <mlists@jupiterhost.net> wrote:
> Howdy all :)
>
> I've a plugin installer that installs certain Perl modules:
>
> This is what it uses,
>
> CPAN::Shell->expand('Module', $module_name)->install();
>
> which works fine as long as root is running it.
>
> What I'd like to do is install the modules as an unprivileged user into
> /home/$user/perl
>
> I tried setting $ENV{'PREFIX'}, $ENV{'PERL5LIB'}, to no avail.
>
> Any one have any ideas if that can be done codewise without reverting to
> a shell command
>
> (
> a) I want to use a module not shell out a command
> b) I want to use CPAN so it follows dependencies instead of
> Makefile.PL -> make etc etc
>
> Any insight into what I've missed would be absolutely excellent :)
>
> TIA!
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>



--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html
JupiterHost.Net

2006-06-26, 6:58 pm



Anthony Ettinger wrote:

> Isn't it PERL_PREFIX?


Perhaps, I'll give it a go once I figure out why its still using the
global config and not the user's.... :)

Thanks for the input Anthony!

> On 6/24/06, JupiterHost.Net <mlists@jupiterhost.net> wrote:
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com