起因:
vi etc/profile 设置:
# 设置环境变量
export PATH=$PATH:/system/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/system/lib/:/system/usr/lib/aarch64-linux-gnu
export PYTHONPATH=$PYTHONPATH:/system/lib
使用vi python报出下列错误:
vi: /system/usr/lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by vi)
vi: /system/usr/lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /lib/aarch64-linux-gnu/libpython3.8.so.1.0)
python3: /system/usr/lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3)查看版本显示有2.29:
root@evm1684:/data/PP-OCRv2# strings /lib/aarch64-linux-gnu/libc.so.6 |grep GLIBC_
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_2.29
GLIBC_2.30
GLIBC_PRIVATE
使用ldd命令:
root@evm1684:/data/PP-OCRv2# ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9) 2.31
Copyright (C) 2020 Free Software Founda
tion, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
请问怎么解决