Setting Env

Drew Jenkins drewjenkinsjr at
Tue Mar 6 23:37:24 UTC 2007

Don Hinton wrote:

># ldconfig -aout -f /etc/ /usr/local/lib/mysql/
>will create it for you.  man ldconfig for more info...

Well, that created a binary, but when I rebooted...nothing. Same problem :(

----- Original Message ----
From: Jerry McAllister <jerrymc at>
To: Drew Jenkins <drewjenkinsjr at>
Cc: freebsd-questions at
Sent: Tuesday, March 6, 2007 6:31:34 PM
Subject: Re: Setting Env

>I don't know for sure what you mean That's not an option.   Is this
>running from cron or at system bootup or something so there is no login


>In those cases, it is well documented that your scripts have to be
>completely responsible for their environments and paths, etc.  So,
>set everything within the scipt.   Or, if it is something systemwide,
>then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
>you let your system have one.

Exactly. But how? I could write a script like I did before:

setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

(chmod +x) but that didn't execute, dunno why. But then how do I call that script? What shell does /etc/rc.conf use?

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list. 

More information about the freebsd-questions mailing list