[rt-users] PATH for executing external programs from RT?
Matthew Seaman
matthew.seaman at thebunker.net
Thu Feb 19 10:36:30 EST 2009
Matthew Seaman wrote:
> Kenneth Marshall wrote:
>> Re-install the GraphViz and GnuPG modules using the correct
>> paths to these programs. Alternatively, you can make a symbolic
>> link from the actual location to where the module is looking for
>> these programs.
>>
>
> Both of those modules use the PATH setting in the environment to find
> executables. There is no explicit record of where programs were found
> at installation time.
>
> And, no, I'm not going to make a rat's nest of symbolic links everywhere.
> Fixing the thing that is broken is what is required, and in this case
> I'd say RT is pretty clearly not doing the right thing.
>
A hah! Found it.
splenetic:/usr/local/bin:# diff -u webmux.pl{.save,}
--- webmux.pl.save 2009-02-16 15:49:57.000000000 +0000
+++ webmux.pl 2009-02-19 15:21:01.000000000 +0000
@@ -49,7 +49,7 @@
use strict;
BEGIN {
- $ENV{'PATH'} = '/bin:/usr/bin'; # or whatever
you need
+ $ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
# or whatever you need
$ENV{'CDPATH'} = '' if defined $ENV{'CDPATH'};
$ENV{'SHELL'} = '/bin/sh' if defined $ENV{'SHELL'};
$ENV{'ENV'} = '' if defined $ENV{'ENV'};
Now the graph links work, and the GPG links are actually showing up.
Definately one for the FreeBSD port even if not accepted upstream.
Cheers,
Matthew
--
Dr Matthew Seaman The Bunker, Ash Radar Station
PGP: 0x60AE908C on servers Marshborough Rd
Tel: +44 1304 814890 Sandwich
Fax: +44 1304 814899 Kent, CT13 0PL, UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090219/26a7dfae/attachment.sig>
More information about the rt-users
mailing list