Find the answer to your Linux question:
Results 1 to 2 of 2
I've set LD_LIBRARY_PATH in etc profile, like all the online guides say to do. However, ]etc]profile only takes effect on login prompts. So if I open a terminal when already ...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Location
    Winnipeg, MB
    Posts
    14

    Arrow Global Environment Variables

    I've set LD_LIBRARY_PATH in etc profile, like all the online guides say to do. However, ]etc]profile only takes effect on login prompts. So if I open a terminal when already logged in, I get:

    Well, I can't show you what I get, because of the 'no URL filter'. Apparently it blocks file locations as well. But what happens is that LD_LIBRARY_PATH only gets set after I ssh to localhost.

    How can I set an environment variable for all users in all kinds of prompts? Do I need to individually edit their bashrc files?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You can edit the /etc/bashrc file, which is loaded before/when the user .bashrc file is.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...