liunx error while loading shared libraries:xxx.so与windos下找不到xxx.dll

写在前面

1、本文内容
linux下 error while loading shared libraries:xxx.so cannot open shared object file
或windos下找不到xxx.dll

2、平台
windows, linux
3、转载请注明出处:
https://blog.csdn.net/qq_41102371/article/details/126299134

linux

临时使用

export LD_LIBRARY_PATH=YOUR_SO_PATH:$LD_LIBRARY_PATH
# 比如export LD_LIBRARY_PATH=/home/carlos/install/realsense/lib:$LD_LIBRARY_PATH

一直生效

在~/.bashrc中加上

export LD_LIBRARY_PATH=/home/carlos/install/realsense/lib:$LD_LIBRARY_PATH

windows

临时使用

set PATH=YOUR_PATH;%PATH%

一直生效

在系统环境变量path里面加入包含所需.dll的路径

references

“error while loading shared libraries: xxx.so.x” 错误的原因和解决办法:
https://blog.csdn.net/sahusoft/article/details/7388617

解决cannot open shared object file: No such file or directory:
https://blog.csdn.net/qc530167365/article/details/91491851
SET PATH命令的详细功能:
https://blog.csdn.net/mygodhome/article/details/7709617
Linux修改$PATH环境变量:
https://blog.csdn.net/littlexiaoshuishui/article/details/82504880
https://www.jb51.net/article/174460.htm

如有错漏,敬请指正
--------------------------------------------------------------------------------------------202208

猜你喜欢

转载自blog.csdn.net/qq_41102371/article/details/126299134