How to set the environmental variable LD_LIBRARY_PATH in linux

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

    I do the following in Mint 15 through 17, also works on ubuntu server 12.04 and above:

    sudo vi /etc/bash.bashrc 
    

    scroll to the bottom, and add:

    export LD_LIBRARY_PATH=.
    

    All users have the environment variable added.

提交回复
热议问题