Given some unix program which I've compiled, what might I need to do to relocate it to a different directory and have it continue running correctly.
I'm thinking of Perl, but would be interested in other systems like Apache which also seem to fail when this is done. To motivate the question, being able to perform this sort of relocation would be very useful when bundling other systems as part of a product install.
For what it's worth, ActivePerl's install process seems to contain some magic which performs the relocation during the install..
Installing ActivePerl...
Copying files to /opt/ActivePerl-5.8...done
Relocating...done (164 files relocated)
Generating HTML documentation...done
Syncing perl PPM database with .packlists...done
ActivePerl has been successfully installed at /opt/ActivePerl-5.8.
Can anyone enlighten me as to what's happening behind that 'Relocating...' line?