当前位置:网站首页>树莓派更新工具链
树莓派更新工具链
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。
边栏推荐
- File links cannot be opened or downloaded in Google browser
- Deep learning parameter initialization (I) Xavier initialization with code
- Interface learning
- Use of framework
- Advanced APL (realize group chat room)
- Advanced API (multithreading 02)
- mysql误删root账户导致无法登录
- [solved] unknown error 1146
- MySQL syntax (basic)
- Practical plug-ins in idea
猜你喜欢
[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones
JMeter test result output
[solved] unknown error 1146
Common problems in io streams
Inno setup production and installation package
2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution
3311. 最长算术
PAT甲级真题1166
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Selenium key knowledge explanation
随机推荐
Realize PDF to picture conversion with C #
10 000 volumes - Guide de l'investisseur en valeur [l'éducation d'un investisseur en valeur]
Deep learning parameter initialization (I) Xavier initialization with code
Integration test practice (1) theoretical basis
Use of framework
Upgrade CentOS php7.2.24 to php7.3
Asynchronous programming: async/await in asp Net
Win 10 find the port and close the port
Inno Setup 制作安装包
在 4EVERLAND 上存储 WordPress 媒体内容,完成去中心化存储
JS date comparison
Advanced API (local simulation download file)
691. Cube IV
POI excel percentage
File links cannot be opened or downloaded in Google browser
instanceof
How can the server set up multiple interfaces and install IIS? Tiantian gives you the answer!
Tool class static method calls @autowired injected service
Error c2017: illegal escape sequence
Distributed ID