From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 16:13:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECD6E1065670 for ; Mon, 10 Nov 2008 16:13:48 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id B17738FC22 for ; Mon, 10 Nov 2008 16:13:48 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id mAAGA2Vd082066; Mon, 10 Nov 2008 11:10:02 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id mAAGA2Jt082065; Mon, 10 Nov 2008 11:10:02 -0500 (EST) (envelope-from jerrymc) Date: Mon, 10 Nov 2008 11:10:02 -0500 From: Jerry McAllister To: Albert Shih Message-ID: <20081110161002.GA81960@gizmo.acns.msu.edu> References: <20081110110805.GK1302@obspm.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20081110110805.GK1302@obspm.fr> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: PATH problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 16:13:49 -0000 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" >