[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anyone installing Perl modules?
From: |
Eric Siegerman |
Subject: |
Re: Anyone installing Perl modules? |
Date: |
Thu, 8 May 2003 15:17:33 -0400 |
User-agent: |
Mutt/1.2.5i |
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. address@hidden
| | /
My Wine works. However it crashes about half the time on startup.
Apparently their simulation of windoze API is getting too accurate. :)
- Kyle Sallee