/usr/bin/ld: cannot find -lc
来源:互联网 发布:免费mysql数据库服务器 编辑:程序博客网 时间:2024/05/06 11:37
最近在研究open-iscsi的源码 学习修改替换传输层协议
在编译open-iscsi时出现:
/usr/bin/ld : cannot find -lc
在网上查很多解决方式如http://blog.sina.com.cn/s/blog_67bbb71101010tto.html:
解决/usr/lib/ld: cannot find -lc:
1. 在系统中搜索 libc.so 文件。搜索出一个无效的链接,删除;还有一个 libc.so.6,在/usr/lib/i386-linux-gnu下面。
2. 进入usr/lib目录:cd /usr/lib
3.建立链接:sudo ln-sv
但实际在本机情况并没有解决问题
添加了各种链接后仍然报错
虽然能搜到有libc.so 但是行不通
[root@localhost usr]# whereis libc.so
libc: /usr/lib64/libc.so /usr/share/man/man7/libc.7.gz
[root@localhost usr]# whereis libc.so.6
libc.so: /lib/libc.so.6 /lib64/libc.so.6 /usr/lib64/libc.so
最后觉得应该是已有的libc.so并不能用 要重新下载或更新
再查了一下,果然:
程序链接需要静态库,系统没有安装静态库导致报错
#sudo yum install glibc-static
完美解决
1 0
- /usr/bin/ld: /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc 解决
- 【解决】/usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc 解决
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- Linux: /usr/bin/ld: cannot find -lc Error and Solution
- GCC 编译出错 /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc 的解决办法
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- 交叉编译时报错:/usr/bin/ld: cannot find -lc
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- Unable to instantiate activity ComponentInfo
- 请勿滥用 2PC prepared transaction
- vim常用命令
- ROS 主动蒙特卡罗粒子滤波定位算法 AMCL 解析-- map与odom坐标转换的方法
- Ajax缓存问题
- /usr/bin/ld: cannot find -lc
- Deep Learning论文笔记之(一)K-means特征学习
- 微信公众平台昵称乱码emoji表情过滤
- java-性能
- Java并发之CyclicBarrier示例
- 数据库里面各种键
- WIN10升级后无线网卡被禁用解决办法
- Android Studio 快捷键整理分享
- mysql5.6新特性总结