Skip to main content
Proper term is "environment" rather than "environmental"
Link
General Grievance
  • 5.1k
  • 39
  • 40
  • 60

How to set the environmentalenvironment variable LD_LIBRARY_PATH in linux

I have first executed the command: export LD_LIBRARY_PATH=/usr/local/lib then export LD_LIBRARY_PATH=/usr/local/lib

Then I havhave opened .bash_profile.bash_profile file: vi ~/.bash_profile vi ~/.bash_profile. In this file, I wroteput: LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH and saved it. Then

LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH 

Then if the terminal is closed and then again restarted and type echo $LD_LIBRARY_PATH, typing echo $LD_LIBRARY_PATH displays no result is displayed.

Where is the error and howHow to set the path permanently? Thanks in advance

I have first executed the command: export LD_LIBRARY_PATH=/usr/local/lib then I hav opened .bash_profile file: vi ~/.bash_profile. In this file, I wrote: LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH and saved it. Then if the terminal is closed and then again restarted and type echo $LD_LIBRARY_PATH, no result is displayed.

Where is the error and how to set the path permanently? Thanks in advance

I have first executed the command: export LD_LIBRARY_PATH=/usr/local/lib

Then I have opened .bash_profile file: vi ~/.bash_profile. In this file, I put:

LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH 

Then if the terminal is closed and restarted, typing echo $LD_LIBRARY_PATH displays no result.

How to set the path permanently?

Source Link
singha
  • 3.7k
  • 3
  • 16
  • 4
Loading