|Pathologically Eclectic Rubbish Lister|
CPAN when not rootby edgreenberg (Acolyte)
|on Dec 12, 2005 at 02:25 UTC ( #515937=perlquestion: print w/replies, xml )||Need Help??|
edgreenberg has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to install modules using CPAN under a hosting account. I have full bash access as a user, and lots of disk space. The system is freebsd.
I set LIB=~/www/cgi-bin since the system conveniently places . on perl's path, and I'm OK with installing things that are system independent.
It was necessary to cd to the ~/www/cgi-bin directory to run cpan, which was fine with me.
The process breaks down once things are installed in the freebsd directory under ~/www/cgi-bin, since CPAN can't find things there. For example, I can't get through Bundle::CPAN since Static::Util (I think) is under the freebsd directory.
Is there something I can do or set to make this go smoother? Also, for the CGI programs that will use the modules, any way to avoid editing each one to add the freebsd directory?
Back to Seekers of Perl Wisdom