bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash root ~/.bash_profile quirk


From: Chris F.A. Johnson
Subject: Re: bash root ~/.bash_profile quirk
Date: Thu, 6 Sep 2007 03:53:42 -0400
User-agent: slrn/0.9.8.1 (Linux)

On 2007-09-06, asherwolf wrote:
>
> I have the following in my root ~/.bash_profile:
>
> PATH=$PATH:$HOME/bin
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/BerkeleyDB.4.6/lib:/usr/local/apr/lib:/usr/lib/httpd/modules
> LD_RUN_PATH=$LD_RUN_PATH:/usr/local/lib:/usr/local/BerkeleyDB.4.6/lib:/usr/local/apr/lib:/usr/lib/httpd/modules
> PKG_CONFIG_PATH=$PKG_CONFIG:/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
>
> export PATH
> export LD_LIBRARY_PATH
> export LD_RUN_PATH
> export PKG_CONFIG_PATH
>
> BUT....
>
> When I use su to log into root, PATH is there, LD_RUN_PATH is there, and
> PKG_CONFIG_PATH is there, but not LD_LIBRARY_PATH (which makes some of my
> programs not cooperate)

   Are you using "su" or "su -"?

-- 
   Chris F.A. Johnson                      <http://cfaj.freeshell.org>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]