How to set the environmental variable LD_LIBRARY_PATH in linux

后端 未结 10 1760
独厮守ぢ
独厮守ぢ 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:27

    Put export LD_LIBRARY_PATH=/usr/local/lib in ~/.bashrc [preferably towards end of script to avoid any overrides in between, Default ~/.bashrc comes with many if-else statements]

    Post that whenever you open a new terminal/konsole, LD_LIBRARY_PATH will be reflected

提交回复
热议问题