打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ubuntu下codeblocks用Valgrind调试时出现的问题

调试的时候出现了类似 

error while loading shared libraries:*.so.0: cannot open shared object file: No such file or directory 的错误

经过GOOLE后发现了下面的解决方案

经过测试 0K!

 

When running Code::Blocks after the installation it might happen, that the system complains:

codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object file: No such file or directory

In that case make sure the library path where the Code::Blocks libraries where installed into is "known" to the system. For example: On Ubuntu using a default build process on a clean system will install the Code::Blocks executables to /use/local/bin and
the libraries to /usr/local/lib. The latter is usually not known to a "clean" Ubuntu system. To add it to the search path for libraries do the following (as root / using sudo respectively): Add the following line to the file /etc/ld.so.conf:

/usr/local/lib

...and run:

ldconfig

That's it - Code::Blocks should now work just fine as all libraries are being found.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Ubuntu下使用开源C/C++开发环境Code::Blocks IDE
详解 Linux 中安装配置强大的 C/C IDE 集成开发环境
译: Code::Blocks手册 使用篇
Windows下的Objective
装Ubuntu时出现Error 15: File not found
【各位同学务必阅读】Codeblocks,Dev C 等集成开发环境安装
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服