From mschwartz at mn.rr.com  Thu Mar  9 00:25:04 2006
From: mschwartz at mn.rr.com (Marc Schwartz (via MN))
Date: Wed, 08 Mar 2006 17:25:04 -0600
Subject: [Rd] R started in terminal shell script or ESS
	steps	on	LD_LIBRARY_PATH?
In-Reply-To: <2C80985C-BBB5-4422-B6B4-2A24CB4132A0@stat.berkeley.edu>
References: <1141763409.4501.85.camel@localhost.localdomain>
	<1141840904.6237.12.camel@localhost.localdomain>
	<440F24C7.3020603@cimr.cam.ac.uk>
	<1141847654.28287.1.camel@localhost.localdomain>
	<1141854139.19839.5.camel@localhost.localdomain>
	<2C80985C-BBB5-4422-B6B4-2A24CB4132A0@stat.berkeley.edu>
Message-ID: <1141860305.609.26.camel@localhost.localdomain>

On Wed, 2006-03-08 at 14:48 -0800, Kasper Daniel Hansen wrote:
> I am _not_ an expert on bash. But as far as I know, .bashrc is not  
> read when you have a login session, whereas .bash_profile is. I have  
> never really understood the deep differences between the two - I only  
> have some superficial understanding. But for my purposes I just have a
>    source .bashrc
> in my .bash_profile script. In that way I set the same variables no  
> matter what kind of session I have (clearly, I only use .bashrc).
> 
> There are important differences when you want to run a program at  
> login, but you do not want to run it every time you start up a shell.  
> But simply for setting environment variables, this ought to work.
> 
> Perhaps this helps? Or perhaps this is something deeper than the  
> simple issue outlined above.
> 
> /Kasper

<snip>

Thanks for the reply Kasper.

Two brief notes, so as not to consume further time and bandwidth here:

1. Dirk has just suggested that I edit /etc/ld.so.conf (then run
ldconfig). Placing the requisite path into that file works and I'm back
to using init 5. RODBC works now.  Thanks Dirk!

2. As mentioned this all had worked just recently. My preference is to
set up my user profile specifically with any customizations, since this
is a single user laptop system. Thus, root's login is clean, when
required for other purposes.  The default FC4 ~/.bash_profile does call
~/.bashrc, which in turn calls /etc/bashrc. So, presuming that the chain
is intact, this should all work, which it had been.

I'm still confused as to the nature of the underlying change, but
perhaps that will be resolved with a clean install soon.

I do sincerely appreciate everyone's time and feedback on this. Sorry
for consuming bandwidth here, for what honestly appeared to be an R
specific issue.

Best regards,

Marc



[Rd] R started in terminal shell script or ESS steps on LD_LIBRARY_PATH?
Marc Schwartz (via MN