[rt-users] PATH for executing external programs from RT?

Kenneth Marshall ktm at rice.edu
Thu Feb 19 11:44:43 EST 2009


I just assumed that the values were hardcoded and not something
that changing your PATH setting would affect. Since that is the
case, this is the appropriate change. I am glad you fixed it.

Cheers,
Ken

On Thu, Feb 19, 2009 at 03:36:30PM +0000, Matthew Seaman wrote:
> 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
>





More information about the rt-users mailing list