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中做到这一点?
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