How to fix 'Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions'
2017-07-14 17:03
1766 查看
在linux中可以通过如下方式 Extending default lib search path:
在/etc/ld.so.conf.d/下创建一个 .conf文件,将lib文件所在路径添加进去.
安装完一个lib之后,执行ldconfig命令
但是,如果在上述过程中出现错误,有时会遇到如下问题,导致cmake等命令无法执行,提示如下:
在网上搜了一遍,没有找到相关解决方法,自己用 locate ld.so
发现出来如下内容:
于是就执行
删除了ld.so.cache,结果问题解决了。
在/etc/ld.so.conf.d/下创建一个 .conf文件,将lib文件所在路径添加进去.
安装完一个lib之后,执行ldconfig命令
但是,如果在上述过程中出现错误,有时会遇到如下问题,导致cmake等命令无法执行,提示如下:
$ cmake --version Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!
在网上搜了一遍,没有找到相关解决方法,自己用 locate ld.so
发现出来如下内容:
$ locate ld.so /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/ld.so.conf.d/libc.con
于是就执行
sudo rm /etc/ld.so.cache
删除了ld.so.cache,结果问题解决了。
相关文章推荐
- 编译OpenGL代码时发生 Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed! 错误的解决方案
- How to Check for Newer Versions of Stored Pages in a Registry
- How To Check Whether Physical Standby is in Sync with the Primary or Not?
- How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse---转载
- How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- How to check the usage of net ports in linux?
- In R, how to split/subset a data frame by factors in one column?
- How to arrange 10 digits so that the product of the some of them is equal to a number represented by the remaining digits
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC
- How to get real file offset in NAND by file name?
- How to fix libtool: Version mismatch error
- How to find and fix faults in Linux applications.
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- SQL: How to get a series of dates in sql using connect by
- How to fix GC overhead limit exceeded in Eclipse
- How to check number of Active connections in SQL server?
- Notes: How to iterate a map in Java
- How To Check Member In Window VS With CplusPlus?
- How to check crash log using android ndk in cocos2d-x