From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 08:55:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 432B716A403 for ; Wed, 7 Mar 2007 08:55:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 210F813C47E for ; Wed, 7 Mar 2007 08:55:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l278tMkp018198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 7 Mar 2007 00:55:22 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l278tLCP023334 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 7 Mar 2007 00:55:22 -0800 Message-ID: <45EE7DF7.5010506@u.washington.edu> Date: Wed, 07 Mar 2007 00:55:19 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <959079.54670.qm@web62214.mail.re1.yahoo.com> In-Reply-To: <959079.54670.qm@web62214.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.7.4433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='LEO_OBFU_SUBJ_RE 0.1, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Setting Env 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: Wed, 07 Mar 2007 08:55:23 -0000 Drew Jenkins wrote: > ----- Original Message ---- > From: Garrett Cooper > To: freebsd-questions@freebsd.org > Sent: Wednesday, March 7, 2007 1:02:01 AM > Subject: Re: Setting Env > > Drew Jenkins wrote: > >> LD_LIBRARY_PATH=/usr/local/lib/mysql/ not work for you? > >> Why not source environment variables from an outside script / rc-file? >> It's better / smarter in the long run, IMHO. > > Sounds great. Again, as I wrote in my last post, I don't know *exactly* what command needs to be entered!! I have tried this in the /etc/rc.conf file: > > setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ > --or-- > export LD_LIBRARY_PATH="/usr/local/lib/mysql/" > --or-- > LD_LIBRARY_PATH=/usr/local/lib/mysql/ > > none of which work. I have tried creating a script and chmod +x in the /usr/local/etc/rc.d folder: > > #!/bin/csh > setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ > > and that doesn't work, either. Would it be okay if I asked anyone out there to tell me *exactly* what I need to do to get this to be set on startup?? > TIA. > Drew The question is, what's failing (or not behaving as expected)? -Garrett