[Rd] R started in terminal shell script or ESS steps on LD_LIBRARY_PATH?

Marc Schwartz (via MN) mschwartz at mn.rr.com
Thu Mar 9 00:25:04 CET 2006


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



More information about the R-devel mailing list