|more useful options|
CPAN non-root questionsby jettero (Monsignor)
|on Apr 02, 2004 at 16:41 UTC||Need Help??|
jettero has asked for the
wisdom of the Perl Monks concerning the following question:
I doubt I'm the first person to ask. I'm hoping to get it all in once place if nothing else -- though, I was unable to find much on here using the regular search.
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.