当前位置:网站首页>net-snmp编译报错:/usr/bin/ld: cannot find crti.o: No such file or directory
net-snmp编译报错:/usr/bin/ld: cannot find crti.o: No such file or directory
2022-08-03 19:15:00 【cao849861802】
err: /usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
这里报错我说下我的解决方式,我的解决方式是给定config的配置的编译平台就可以了
这边给定一下我的交叉编译net-snmp的时候的config
./configure --prefix=/media/build/cyf/400mcode/net-snmp/setup --build=x86_64 --host=aarch64-linux-gnu --with-cc=aarch64-linux-gnu-gcc --with-ar=aarch64-linux-gnu-ar --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log" --without-perl-modules --disable-embedded-perl
上述配置关键是--build=x86_64 --host=aarch64-linux-gnu这两个配置。会影响这个报错;
边栏推荐
- 力扣刷题之爬楼梯(7/30)
- vulnhub pyexp: 1
- if/else或switch替换为Enum
- YAML中多行字符串的配置方法:|+、 |、 |-、 >+、 >、 >-的区别
- awk语法-02-运算、数组、格式化输出
- Brush the topic of mobile zero power button
- Zhong Hua, senior architect of Ali: China-Taiwan strategic thinking and architecture practice; including internal implementation manual
- LeetCode 952. Calculate Maximum Component Size by Common Factor
- 余弦距离介绍
- How does MySQL permanently support Chinese input once and for all?
猜你喜欢
随机推荐
余弦距离介绍
ScrollView嵌套RV,滑动有阻力不顺滑怎么办?
201712-3 CCF Crontab满分题解
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting
Kettle 读取 Excel 数据输出到 Oracle 详解
不要小看 WebSocket!长连接、有状态、双向、全双工都是王炸技能
ADS 2023 Download Link
ADS 2023 下载链接
图像超分——Real-ESRGAN快速上手
Difference差分数组
LOL英雄联盟卡顿掉帧问题解决办法 2022年8月1日
金鱼哥RHCA回忆录:CL210管理计算资源--管理计算节点+章节实验
Power button brush the topic of merging two orderly array
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
梅科尔工作室-14天华为培训七
Unity获取canvas 下ui 在屏幕中的实际坐标
[数据集][VOC]老鼠数据集voc格式3001张
机器学习的方法总结
揭秘5名运维如何轻松管理数亿级流量系统
MYSQL误删数据恢复





![[笔记]机器学习之前言介绍](/img/69/e2acd3efd5f513c9c32fca701b66c0.png)


