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?
$, e.g.export LD_LIBRARY_PATH=$LD_LIBRARY_PATH– Cookie Oct 7 '14 at 14:43sudo ldconfigafter that – neckTwi May 13 '16 at 5:14$ source ~/.bash_profile? I tend to forget that. And then like @neckTwi said run ldconfig – ashley Jun 15 '16 at 11:01