Setting up Linux program lib directory search

Setting up Linux program lib directory search: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:lib路径for example:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mylib

This setting is only temporary environment variable, after closing the terminal is gone, if you want permanent, you can add commands to the /etc/profileenvironment variable configuration file

Guess you like

Origin www.cnblogs.com/ay-a/p/11569617.html