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

Re: Relocatable perl

Thread Previous | Thread Next
From:
Graham Barr
Date:
May 3, 2001 07:43
Subject:
Re: Relocatable perl
Message ID:
20010503154201.R65525@pobox.com
On Thu, May 03, 2001 at 03:13:06PM +0100, Alan Burlison wrote:
> sfink@digital-integrity.com wrote:
> 
> > > 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
> > fine:
> 
> That's fine, however it is a different mechanism to that used on Solaris
> (and VMS, and Win32...)  Rather than perpetuating a series of
> platform-spefific hacks it would be preferable to have a generic
> get_exe_path() function and then to do all the other path fixups in a

Do we not have that already ? How is $^X set 

Graham.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About