Your environment is misconfigured, you probably need to ‘unset LD_LIBRARY_PATH‘ but please check why

今天编译内核代码时报错:
Your environment is misconfigured, you probably need to ‘unset LD_LIBRARY_PATH’
but please check why this was set in the first place and that it’s safe to unset.
The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set.
以为是自己的SDK出现问题了,从新安装了SDK还是不行,根据提示信息:不应该设置LD_LIBRARY_PATH,于是查看了一下

echo $LD_LIBRARY_PATH

在这里插入图片描述
原来是我之前设置了ROS的库路径,于是清除LD_LIBRARY_PATH

unset LD_LIBRARY_PATH

再次编译,问题解决。

猜你喜欢

转载自blog.csdn.net/weixin_44698673/article/details/127050267