Solved

Linux, PATH, etc

Posted on 2013-11-29
3
276 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
3 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 167 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 166 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 167 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Xymon customize http timeout 2 84
add some character at the end of line in vi 7 78
Migrating php-mysql-jquery application to Microsoft Azure Cloud 7 23
linux SFTP 8 40
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

785 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