我需要这样做:
On linux,we have to find a few
dynamic libraries which are not on a
standard location. We have to set
$LD_LIBRARY_PATH to /path/to/sdk/lib
我怎么能在Ubuntu 10.10中做到这一点?
要定义此变量,只需使用(在shell
提示符下):
export LD_LIBRARY_PATH="/path/to/sdk/lib"
要使其永久化,您可以编辑ldconfig文件.首先,创建一个新文件,例如:
sudo vi /etc/ld.so.conf.d/your_lib.conf
其次,在创建的文件中添加路径
/path/to/sdk/lib
最后,运行ldconfig以更新缓存.
sudo ldconfig
原文链接:https://www.f2er.com/linux/400518.html