Perl installation in custom location
I have an requirement of installing perl in custom location (NFS share that will be mounted on many machines).
suppose '/usr/perly' is the NFS share, perl will be invoked as /usr/perly/bin/perl
I require all the libraries to be created on the same share so that no local libraries are referred. Also, I need hundreds of modules installed in the same location.
How do I do it with CPAN method?
I found this link useful, can you please suggest if this works.
Probably the best source of information is to Google on Perl installation "as a non-root user."
When Perl is asked to look for a package, it walks down a list ('@INC') looking for it. When 'cpan' is used to install a package, it uses its "configuration" information to know where to put it.
Personally, what I would do here is to establish one "authoritative repository" of what the CPAN libraries should contain for all the various computers, and then, on each of them, I would 'rsync' the data to a local drive. Perl will make constant reference to the directories that are on its '@INC' list, and, quite frankly, I would not advise that they be NFS (Zzzz....) shares...
Thanks for reply,
I found below paragraph in 'perldocs'.. I could install newer perl in total different location without disturbing current perl versions.
When I search for man pages for perl, it is showing pages meant for older perl version.
So situation is,
Is there a way I can copy man pages meant for NEWER perl version to location where OLD perl man pages are kept, without disturbing anything?
I cannot ask people to add new manpath to their profile file.
Please suggest on this.
|All times are GMT -5. The time now is 03:29 AM.|