PATH problem
Jerry McAllister
jerrymc at msu.edu
Mon Nov 10 08:13:49 PST 2008
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list