Operating System - HP-UX
1832973 Members
2508 Online
110048 Solutions
New Discussion

Moving Perl binaries from one machine to a different directory in another machine

 
SOLVED
Go to solution
Philip Chan_1
Respected Contributor

Moving Perl binaries from one machine to a different directory in another machine

The perl binaries were compiled under /opt/perl5 in machine "A". After copying the entire hierachy to /opt/perl5-abc in machine "B", I am getting whole bunch of module not found errors. I tried setting PERL5LIB to the new path, it helped a bit but some modules were still not found. The reason I wanted to use a different Perl path in machine "B" is because I would like to keep its original Perl program intact.


Does anyone know how can I run Perl from a directory path that is different from its compilation path under HP-UX?

In Active Perl, I can do it by changing all references for the old path to new in Config.pm, however this didn't work in my HP boxes.
2 REPLIES 2
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Moving Perl binaries from one machine to a different directory in another machine

PERL5LIB *is* the only way to go when moving binary distro's

maybe you forgot site_lib to be added in $PERL5LIB

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
D Block 2
Respected Contributor

Re: Moving Perl binaries from one machine to a different directory in another machine

Philip,

some the perl programs might have references to defined paths.

have you try to run: chatr
on some of these programs ?

how about the old Symbolic link to resolve the paths:

/opt/perl5 -> /opt/per5-abc

might do the trick besides the PERL5LIB set.

Golf is a Good Walk Spoiled, Mark Twain.