An issue arises with building large and complex modules that normally
install
to multiple places in the Perl library tree. If you can't run "make
install"
you have to figure out the destinations by hand.
One solution is to establish your own library tree.
If you say
make PREFIX=$HOME/myperllib install
Perl will build the tree for you under $HOME/myperllib, and you can put as
many modules there as you like.
Unfortunately you will need to hack your PERL5LIB environment variable in
the
worst way, since Perl needs to see both your tree and the default one.
Here's
a solution in csh. (Disclaimer: I really hate this trick. Suggestions for
an easier way are welcome.)
if (! $?ORIG_PERL5LIB) then
# Force Perl to rely on compiled @INC and save it
unsetenv PERL5LIB
setenv ORIG_PERL5LIB `perl -e '$,=":"; print @INC'`
# Mirror Perl's directory tree
setenv MY_PERL5LIB `perl -e \\
'$,=":"; print grep s-[^:]*/lib/-$ENV{HOME}/myperllib/-, @INC'`
# Combine them
setenv PERL5LIB ${MY_PERL5LIB}:${ORIG_PERL5LIB}
endif
Regards,
Jonathan
-----Original Message-----
From: Richie Crews [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:05 AM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: RE: install modules when user is not root
Include your folder of modules in the @INC path to a folder in your home dir
or a dir you have permission too write to
Richie Crews
Unix Systems Administrator
(706) 773 - 3436 CELL
(706) 634 - 3681 DESK
(706) 634 - 3831 FAX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disclaimer: Any errors in spelling, tact, or fact are transmission errors
and not the fault of the sender.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: Rizwan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:01 AM
To: '[EMAIL PROTECTED]'
Subject: install modules when user is not root
Hi! all,
I am trying to install some of the CPAN modules ,like the b::graph module,
but I am not able to because I dont have the root privilages.
Specifically, can anybody help me use the b::graph module without root
previleges.
Rizwan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]