Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2008 11:10:02 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Albert Shih <Albert.Shih@obspm.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PATH problem
Message-ID:  <20081110161002.GA81960@gizmo.acns.msu.edu>
In-Reply-To: <20081110110805.GK1302@obspm.fr>
References:  <20081110110805.GK1302@obspm.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 10, 2008 at 12:08:05PM +0100, Albert Shih wrote:

> Hi all
> 
> I've PATH problem with a perl package (I don't knwon anything about
> perl....).
> 
> I run rt (3.8) under apache22 + mod_perl2 and on some p5 librairie I've got
> message like 
> 
> Command 'dot' not found in /bin, /usr/bin at /usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm 
> 
> and yes «dot» is not in /bin or /usr/bin but it's in
> 
> 	/usr/local/bin
> 
> So...how can I tell .... who ?(maybe www)  to try to find «dot» in /usr/local/bin

Whenever you use some command or address some file in a script or within a 
program, you should use the full path - starting with '/' so instead of 
lcalling it 'd' in the script or program, call it '/usr/local/bin/dot'

You can also explicitly add /usr/local/bin to your path and/or your
script's path.  Something like

set path=$path:/usr/local/bin
or set path=/bin:/usr/bin:/usr/local/bin:/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm

or whatever you want the path to be.

The syntax may vary some between different shells.

////jerry

> 
> Regards.
> -- 
> Albert SHIH
> SIO batiment 15
> Observatoire de Paris Meudon
> 5 Place Jules Janssen
> 92195 Meudon Cedex
> Heure local/Local time:
> Lun 10 nov 2008 12:05:08 CET
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081110161002.GA81960>