Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2007 06:27:06 -0800 (PST)
From:      Drew Jenkins <drewjenkinsjr@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting Env
Message-ID:  <984676.62893.qm@web62205.mail.re1.yahoo.com>

next in thread | raw e-mail | index | archive | help

20----- Original Message ----
From: Garrett Cooper <youshi10@u.washington.edu>
To: freebsd-questions@freebsd.org
Sent: Wednesday, March 7, 2007 4:55:19 AM
Subject: Re: Setting Env

>Drew Jenkins wrote:
>> ----- Original Message ----
>> From: Garrett Cooper ><youshi10@u.washington.edu>
>> 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)?



I would like that line to execute upon startup. Right now, every time I boot the machine, I have to remember to enter that setenv command, and that's a nuisance. I would like it to be automatic.
TIA,
Drew





 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091



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