?
Solved

Linux, PATH, etc

Posted on 2013-11-29
3
Medium Priority
?
284 Views
Last Modified: 2013-12-04
I want to permanently change the PATH, LD_LIBRARY_PATH, etc

What file contains the PATH and LD_LIBRARY_PATH such that these will be set system wide upon boot up ?

Thanks
0
Comment
Question by:Los Angeles1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 668 total points
ID: 39686151
Should be in /etc/profile (or in scripts residing in the directory /etc/profile.d/, if present) or perhaps in /etc/environment (preferred if supported),  depending on the OS in use.
0
 
LVL 8

Assisted Solution

by:Pepe2323
Pepe2323 earned 664 total points
ID: 39686175
Hi

if you want all users have those Variables defined by default, then yes modify /etc/profile as woolmilkporc says; if it's only for a few or a single user (s), then you have to define it on profile of that user.

for BASH shell it is on the home directory of that user add those variables on .bash_profile, some other shells use .profile

Regards.
0
 
LVL 25

Accepted Solution

by:
madunix earned 668 total points
ID: 39687154
LD_LIBRARY_PATH should be used only temporarly or during development process, and never be set globally, instead you could use ldconfig.
http://www.cyberciti.biz/tips/linux-shared-library-management.html
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question