Sean Davis wrote:
> I have a script that queries a database and then uses GraphViz.pm to
> generate png output based on the query.  GraphViz calls executables
> located in /usr/local/bin.  This runs fine from the command line and
> produces a functional png output.  However, when I switch this over to
> CGI (after adding the appropriate html header, of course), I get the
> following error message:
> 
> Command 'neato' not found in /bin, /sbin, /usr/bin, /usr/sbin,
> /usr/libexec, /System/Library/CoreServices at
> /Library/Perl/5.8.1/GraphViz.pm line 1020

If you're calling 'neato' directly, use the full path:

   system "/usr/local/bin/neato";

If it's being called from inside a module or something that you can't
change, just add /usr/local/bin to the PATH at the beginning of your
program:

   $ENV{PATH} .= ':/usr/local/bin';

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to