Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th December 2006, 02:54 PM
craigni Offline
Registered User
 
Join Date: Oct 2006
Posts: 17
Question setting environment variables

I have a very strange problem with FC5 setting global and local environment variables.

To set a global environment variable, I put this as a file ("ldlibpath.sh") in /etc/profile.d:

# Set LD_LIBRARY_PATH
if [ -z "$LD_LIBRARY_PATH" ] ; then
LD_LIBRARY_PATH="/usr/local/lib" ; else
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" ; fi
export LD_LIBRARY_PATH

I then added this line to my .bash_profile:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$HOME/geda-install/lib

On startup (both Gnome and KDE)

$ echo $LD_LIBRARY_PATH
/usr/local/lib

*only*. If I source .bash_profile in my home directory,

$ source .bash_profile
$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/local/lib:/home/myhome/geda-install/lib

For the longest time, I thought this was a sourcing problem--that .bash_profile in my home directory wasn't being sourced. But then I put the line

export MONKEY=monkeyman

into .bash_profile, and when I echo $MONKEY I get monkeyman on startup. So it seems that the export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$HOME/geda-install/lib in my .bash_profile isn't being run *selectively*. Weird!!

Anybody have any ideas what is going on, and how I can add /home/myhome/geda-install/lib to my LD_LIBRARY_PATH for just my local login???

Many TIA
Craig
Reply With Quote
Reply

Tags
environment, setting, variables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment Variables nightmarcus Using Fedora 5 20th January 2009 11:31 AM
Environment Variables Curtor Using Fedora 4 14th February 2008 08:01 PM
setting environment variables blahboybang Using Fedora 2 25th April 2006 12:23 AM
environment variables? hari_mj23 Using Fedora 9 3rd April 2006 07:03 AM


Current GMT-time: 04:40 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat