当前位置:网站首页>树莓派更新工具链
树莓派更新工具链
2022-07-03 07:11:00 【_seaside_】
在其他环境上 编译的bin文件,在我的树莓派上竟然无法运行,原来是由于glibc的库太旧导致,所以只能升级树莓派的glibc了。
查看一下树莓派上libc的版本:
strings /lib/aarch64-linux-gnu/libc.so.6 |grep GLIBC_
升级步骤:
1. get 2.34 glibc from internet
wget http://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.gz
2. tar -zxvf glibc-2.34.tar.gz
3. cd glibc-2.34
4. mkdir build
5. cd build
6. sudo apt-get install bison (if you haven't never install bison, bison --version to look version )
6. ../configure --prefix=/opt/glibc-2.34
7. sudo make install
8.删除libc.so.6之后可能导致系统命令不可用的情况, 可使用如下方法解决:
LD_PRELOAD=/opt/glibc-2.29/lib/libc-2.29.so ln -s /opt/glibc-2.29/lib/libc-2.29.so /lib/aarch64-linux-gnu/libc.so.6
如果上述更新失败可使用如下命令还原:
LD_PRELOAD=/lib/aarch64-linux-gnu/libc-2.31.so ln -s /lib/aarch64-linux-gnu/libc-2.31.so /lib/aarch64-linux-gnu/libc.so.6 // libc-2.31.so 此项是系统升级前的版本
在configure和make阶段,将花很长很长的时间,后来实在无法忍受,就把操作系统升级了,升级到22.04版本,glibc就比较新了,然后再运行其他环境编译的程序,果然运行OK。
边栏推荐
- Laravel框架 踩坑(一)
- POI excel percentage
- Centos切换安装mysql5.7和mysql8.0
- La loi des 10 000 heures ne fait pas de vous un maître de programmation, mais au moins un bon point de départ
- 【最详细】最新最全Redis面试大全(50道)
- Asynchronous programming: async/await in asp Net
- How to migrate or replicate VMware virtual machine systems
- mongodb
- 在 4EVERLAND 上存储 WordPress 媒体内容,完成去中心化存储
- Realize PDF to picture conversion with C #
猜你喜欢

Setting up the development environment of dataworks custom function

Pytest -- write and manage test cases

Sorting, dichotomy

Integration test practice (1) theoretical basis
![[set theory] partition (partition | partition example | partition and equivalence relationship)](/img/f0/c3c82de52d563f3b81d731ba74e3a2.jpg)
[set theory] partition (partition | partition example | partition and equivalence relationship)

SecureCRT password to cancel session recording

“百度杯”CTF比赛 2017 二月场,Web:爆破-1

Sorting out the core ideas of the pyramid principle

3311. Longest arithmetic
![[untitled]](/img/72/4ff9354634342580a135debb58b60e.jpg)
[untitled]
随机推荐
Resthighlevelclient gets the mapping of an index
[solved] unknown error 1146
[Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
691. Cube IV
深度学习参数初始化(一)Xavier初始化 含代码
Laravel Web Framework
Pytest -- write and manage test cases
Specified interval inversion in the linked list
MySQL transaction rollback, error points record
Abstract learning
MySQL installation
RestHighLevelClient获取某个索引的mapping
Software testing assignment - the next day
Strategy mode
Advanced API (character stream & net for beginners)
[solved] sqlexception: invalid value for getint() - 'Tian Peng‘
dataworks自定义函数开发环境搭建
Laravel框架 踩坑(一)
Setting up the development environment of dataworks custom function
LeetCode