How to set the environmental variable LD_LIBRARY_PATH in linux

后端 未结 10 1485
独厮守ぢ
独厮守ぢ 2020-11-22 11:11

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

Then I have opened .bash_profile file: vi ~/.bash_profile

10条回答
  •  死守一世寂寞
    2020-11-22 11:47

    For some reason no one has mentioned the fact that the bashrc needs to be re-sourced after editing. You can either log out and log back in (like mentioned above) but you can also use the commands: source ~/.bashrc or . ~/.bashrc.

提交回复
热议问题