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 ----=0AFrom: Garrett Cooper <youshi10@u.washington= .edu>=0ATo: freebsd-questions@freebsd.org=0ASent: Wednesday, March 7, 2007 = 4:55:19 AM=0ASubject: Re: Setting Env=0A=0A>Drew Jenkins wrote:=0A>> ----- = Original Message ----=0A>> From: Garrett Cooper ><youshi10@u.washington.edu= >=0A>> To: freebsd-questions@freebsd.org=0A>> Sent: Wednesday, March 7, 200= 7 1:02:01 AM=0A>> Subject: Re: Setting Env=0A>> =0A>> Drew Jenkins wrote:= =0A>> =0A>>> LD_LIBRARY_PATH=3D/usr/local/lib/mysql/ not work for you?=0A>>= =0A>>> Why not source environment variables from an outside script / rc-fi= le? =0A>>> It's better / smarter in the long run, IMHO.=0A>> =0A>> Sounds g= reat. Again, as I wrote in my last post, I don't know *exactly* what comman= d needs to be entered!! I have tried this in the /etc/rc.conf file:=0A>> = =0A>> setenv LD_LIBRARY_PATH /usr/local/lib/mysql/=0A>> --or--=0A>> export = LD_LIBRARY_PATH=3D"/usr/local/lib/mysql/"=0A>> --or--=0A>> LD_LIBRARY_PATH= =3D/usr/local/lib/mysql/=0A>> =0A>> none of which work. I have tried creati= ng a script and chmod +x in the /usr/local/etc/rc.d folder:=0A>> =0A>> #!/b= in/csh=0A>> setenv LD_LIBRARY_PATH /usr/local/lib/mysql/=0A>> =0A>> and tha= t doesn't work, either. Would it be okay if I asked anyone out there to tel= l me *exactly* what I need to do to get this to be set on startup??=0A>> TI= A.=0A>> Drew=0A>=0A>>The question is, what's failing (or not behaving as >>= expected)?=0A=0A=0A=0AI would like that line to execute upon startup. Right= now, every time I boot the machine, I have to remember to enter that seten= v command, and that's a nuisance. I would like it to be automatic.=0ATIA,= =0ADrew=0A=0A=0A=0A=0A=0A =0A______________________________________________= ______________________________________=0ANeed Mail bonding?=0AGo to the Yah= oo! Mail Q&A for great tips from Yahoo! Answers users.=0Ahttp://answers.yah= oo.com/dir/?link=3Dlist&sid=3D396546091
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?984676.62893.qm>