develooper Front page | perl.perl5.porters | Postings from May 2001

Re: Relocatable perl

Thread Previous | Thread Next
May 1, 2001 10:37
Re: Relocatable perl
Message ID:
Alan Burlison wrote:
> Andy Dougherty wrote:
> > > Is this really worth the effort?
> >
> > It's certainly often requested. :-).
> It would however only work on Solaris, unless other platforms have a way of
> reliably finding the path to the executable.

Unless I'm missing some nuance, Linux does as long as the proc
filesystem is mounted at /proc (it is in every distribution I've seen):
readlink("/proc/self/exe",...). And relative shared libs appear to work

% ldd main
        ./gork/ => ./gork/ (0x40015000) => /lib/ (0x4001d000)
        /lib/ => /lib/ (0x40000000)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About