解决./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file:
来源:互联网 发布:淘宝哪家mcm高仿 编辑:程序博客网 时间:2024/06/09 01:37
在使用动态库的时候,已经生成了可执行文件(exam5-5)了,但是输入./exam5-5运行时报错:
./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file: No such file or directory
这是因为运行时系统无法找到你的动态库,这时候要配置一下:
进入/etc/ld.so.conf.d/目录下
新建一个文件:demo.conf(libdemo,so)
然后再demo.conf中写入libdemo.so的路径
我这里是 /home/lan/桌面/GNU C/动态库
最后一root身份输入:/sbin/ldconfig-v
让改成的配置文件生效即可
然后就可以运行啦:
参考:运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
阅读全文
0 0
- 解决./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file:
- ubuntu error while loading shared libraries: libxml2.so.2: cannot open shared object file: 解决
- 解决 error while loading shared libraries: libghttp.so.1: cannot open shared object file
- 解决aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: Nosuchfile
- error while loading shared libraries: xxx.so.0:cannot open shared object file:的错误解决
- 解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file.....
- error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file
- memcached: error while loading shared libraries:libevent-2.0.so.5: cannot open shared object file:
- error while loading shared libraries: libreadline.so.5: cannot open shared object file
- postgresql报错Error while loading shared libraries: libpq.so.5: cannot open shared object file
- python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:
- mysql: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No su
- error while loading shared libraries cannot open shared object file
- error while loading shared libraries| cannot open shared object file
- Error While Loading Shared Libraries, Cannot Open Shared Object File
- Error While Loading Shared Libraries, Cannot Open Shared Object File
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- 更改ssh服务远程登录配置
- STARKs, Part I: 多项式证明
- mybatis-plugins mybatis-tools
- JDK容器学习之TreeMap (二) : 使用说明
- System类
- 解决./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file:
- 【安卓学习笔记】 JAVA基础-异常
- ActorCritic学习笔记
- Docker镜像下载缓慢解决方法
- 继承(C++)
- 摩尔定律与电子产品价格的关系
- 入门训练 圆的面积
- System类
- html:属性