I want to set my LIBRARY_PATH
permanently. I searched about it but there was guides for setting LD_LIBRARY_PATH
, so I would be thankful if anyone help me.
thanks in advance.
Asked
Active
Viewed 1,137 times
0

Luminous
- 23
- 6
1 Answers
3
You do that in ~/.bashrc
. On a new line, just enter:
export LIBRARY_PATH=<path to your library files>:$LIBRARY_PATH
Then, run source ~/.bashrc
to enable anything you've added there.

gustafbstrom
- 1,622
- 4
- 25
- 44
-
For clarification: the `:$LIBRARY_PATH` part appends anything that was previously set in the old variable into the new one. – gustafbstrom Jul 06 '15 at 12:16
-
using `export` doesn't change the variable permanently, it just set it in active shell. – Luminous Jul 06 '15 at 12:21
-
Then, try changing `/etc/environment`, supposing by "permanent" you mean "system-wide"; see https://help.ubuntu.com/community/EnvironmentVariables#System-wide_environment_variables for details. – gustafbstrom Jul 06 '15 at 13:49