jettero has asked for the wisdom of the Perl Monks concerning the following question:
I wish to test some stuff on a test account on a lunix box that I don't own. I found out that it's exceedling trickey to install modules as non-root. I don't think it should be.
The first problem, the admin had already configured CPAN, so the CPAN::Config pointed to /home/adminname/.cpan and I couldn't even start the shell. :(
How can you reconfigure CPAN to use ~/.cpan once the real admin has already configured it?
The second problem is the @INC. Is there a way to fool a root-installed binary into adding your ~/my-mods to @INC? I keep looking for an environment variable for this, but there doesn't seem to be one. Yeah, I can add -I ~/my-mods to everything...
Is there a transparent way to globally modify @INC?
Of course, I can always just build my own perl, but that seems cheap and lame to me. Also, then the #!/usr/bin/perl won't work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CPAN non-root questions
by matija (Priest) on Apr 02, 2004 at 17:10 UTC | |
by jettero (Monsignor) on Apr 02, 2004 at 18:40 UTC | |
by Intrepid (Curate) on Apr 03, 2004 at 18:18 UTC | |
Re: CPAN non-root questions
by z3d (Scribe) on Apr 02, 2004 at 18:09 UTC | |
by jettero (Monsignor) on Apr 02, 2004 at 18:39 UTC | |
by Anonymous Monk on Nov 09, 2009 at 02:48 UTC | |
by jettero (Monsignor) on Nov 09, 2009 at 13:11 UTC | |
Re: CPAN non-root questions
by toma (Vicar) on Apr 03, 2004 at 06:26 UTC |