There's more than one way to do things | |
PerlMonks |
"use lib" whith architecture and version specific dirsby jeorgen (Pilgrim) |
on Dec 11, 2000 at 07:16 UTC ( [id://46002]=perlquestion: print w/replies, xml ) | Need Help?? |
jeorgen has asked for the wisdom of the Perl Monks concerning the following question:
Dear fellow monks I'm installing perl modules at a customer's web account, where we do not have root access. So I have created a local perl library, "/home/customer/customers_perl_modules". I install modules with CPAN configured for the local library, and sometimes with perl Makefile.PL PREFIX =/home/customer/customers_perl_modules The info on the local libray is stored in the myconfig.pm in the .cpan directory in the user's home directory. Now, all the modules installed do indeed end up inside the "/home/customer/customers_perl_modules"directory, but often not directly under it, but deeper, in directories named after the version of perl that is used, the processor architecture, under the library "site_perl". There is:
Now, writing
doesn't work for the below script, I seem to need the two following "use libs" in the script for it to work: It seems kind of counter-productive to manually specify the path to each architecture-specific and version-specific directory. I would have thought that this would be handled automatically either by perl itself or by the lib pragma. So should I: a) Use some other way than PREFIX and .cpan/myconfig.pm to tell the modules where to be b) Manually move the modules up and out of the architecture and version-specific libraries c) use something else than use lib d) subclass lib module and auto-create appended paths with version, "site_perl" and architecture values added e) or is my perl broken ? "perl -V" gives this: Am I missing something? /jeorgen
Back to
Seekers of Perl Wisdom
|
|