当前位置:网站首页>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这两个配置。会影响这个报错;
边栏推荐
- Compose原理-compose中是如何实现事件分法的
- 要想成为黑客,离不开这十大基础知识
- Postgresql快照优化Globalvis新体系分析(性能大幅增强)
- X86函数调用模型分析
- Force is brushed buckle problem for the sum of two Numbers
- [Dataset][VOC] Rat dataset voc format 3001 sheets
- 【QT】入门心法
- Shell programming loop statement
- Shell编程之循环语句
- 【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
猜你喜欢
随机推荐
OneNote 教程,如何在 OneNote 中设置页面格式?
FreeRTOS Intermediate
pytest接口自动化测试框架 | Jenkins集成初探
SQL server 实现触发器备份表数据
Postgresql source code (65) analysis of the working principle of the new snapshot system Globalvis
面试突击:什么是粘包和半包?怎么解决?
Zhong Hua, senior architect of Ali: China-Taiwan strategic thinking and architecture practice; including internal implementation manual
MySQL master-slave, 6 minutes you master!
盘点在线帮助中心对企业能够起到的作用
阿里资深专家打造从零开始学架构,含阿里内部技术栈PPT、PFD实战
普通用户如何利用小红书赚钱呢?小红书的流量是真的吗?
Execute the mysql script file in the docker mysql container and solve the garbled characters
力扣刷题之分数加减运算(每日一题7/27)
Rust:多线程并发编程
Shell编程之循环语句
Power button brush the topic of merging two orderly array
ctfshow php features
LeetCode 952. Calculate Maximum Component Size by Common Factor
APT级全面免杀与企业纵深防御体系的红蓝对抗
MySQL如何一劳永逸的永久支持输入中文