qemu busy2

2、 qemu
https://www.cnblogs.com/littleKuBao/p/15057575.html?ivk_sa=1024320u

1、遇到问题,静态编译busy问题
/usr/bin/ld: cannot find -lm


用静态方式编译busybox-1.33.1
/usr/bin/ld: cannot find -lm

这个处理完busy就能通过了

https://www.cnblogs.com/littleKuBao/p/15057575.html?ivk_sa=1024320u

在编译程序的时候出现编译错误!如下所示:

/usr/bin/ld: cannot find -lm


cannot find -lm问题根源在于:编译的时候用了“-static” 选项。

那么为什么出现这个问题呢?
因为现在的Linux中没有静态c库。

解决办法:

安装glibc-static 库就好了。

我的主机环境是RHEL6.5,安装命令如下所示:

yum install glibc-static
 
posted @ 2022-11-25 16:00  cnchengv  阅读(35)  评论(0)    收藏  举报