This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Anyone installing Perl modules?
- From: Eric Siegerman <erics at telepres dot com>
- To: automake at gnu dot org
- Date: Thu, 8 May 2003 15:17:33 -0400
- Subject: Re: Anyone installing Perl modules?
- Organization: Telepresence Systems Inc.
- References: <20030508184820.GA26321@hank.org>
On Thu, May 08, 2003 at 11:48:20AM -0700, Bill Moseley wrote:
> But, is there a better or more common way to install my Perl modules into the system @INC
> using Automake/autoconf? There still should be a way to override where they are installed
> with a configure switch.
I tend to use Stow for that. Note that this is a choice I make
as the installer of a given package; the package's maintainer
doesn't need to have done anything beyond implementing --prefix
or the equivalent, which of course you get for free with
autoconf.
> If I install a helper program in libexecdir (which is not in the $PATH), what is the best
> way to portably add that path in my C program (for either a popen() or fork/exec to run the
> program)?
The safest way is not to depend on the path at all. Instead,
hard-code the path in the caller. Of course, that should only
happen at configure time :-) That is, have the caller do the
equivalent of:
execv("${libexecdir}/helper", args);
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. erics@telepres.com
| | /
My Wine works. However it crashes about half the time on startup.
Apparently their simulation of windoze API is getting too accurate. :)
- Kyle Sallee