阮波 发表于 2024-5-6 22:12:16

openEuler环境运行greatsql-shell-8.0.32-25-glibc2.28-x86_64 报错




运行环境:
# cat /etc/os-release
NAME="openEuler"
VERSION="20.03 (LTS-SP2)"
ID="openEuler"
VERSION_ID="20.03"
PRETTY_NAME="openEuler 20.03 (LTS-SP2)"
ANSI_COLOR="0;31"

# opensslversion
BabaSSL 8.3.2
OpenSSL 1.1.1h22 Sep 2020
# pwd
/root/greatsql-shell-8.0.32-25-glibc2.28-x86_64/bin
# uname -a
Linux mgr1 4.19.90-2106.3.0.0095.oe1.x86_64 #1 SMP Wed Jun 23 15:18:59 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
#


运行报错:

# ./mysqlsh -S /tmp/mysql.sock root@localhost
./mysqlsh: relocation error: /root/greatsql-shell-8.0.32-25-glibc2.28-x86_64/bin/../lib/mysqlsh/libc.so.6: symbol _dl_fatal_printf version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference


我在gitee上最下方只找到7. MySQL Shell for GreatSQL 工具包(GreatSQL-8.0.32-25 · 万里数据库/GreatSQL - Gitee.com),不知道是不是包版本的问题

yejr 发表于 2024-5-7 08:50:09

运行 ldd --version 看看你的glibc版本号多少,应该是不匹配

现在GreatSQL Shell没有for glibc2.17的版本,需要的话得自行编译,可以参考 https://gitee.com/GreatSQL/GreatSQL-Docker/tree/master/GreatSQL-Shell-Build

yejr 发表于 2024-5-7 08:51:00

也可以考虑用docker方式运行GreatSQL Shell,参考 https://gitee.com/GreatSQL/GreatSQL-Docker/tree/master/GreatSQL-Shell

15167759230 发表于 2024-5-7 19:52:41

root@mgr1 bin]# ./mysqlsh -S /tmp/mysql.sock root@localhost
./mysqlsh: relocation error: /root/greatsql-shell-8.0.32-25-glibc2.28-x86_64/bin/../lib/mysqlsh/libc.so.6: symbol _dl_fatal_printf version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference,先查看一下GLIBC的版本.

阮波 发表于 2024-5-8 21:19:01

yejr 发表于 2024-5-7 08:50
运行看看你的glibc版本号多少,应该是不匹配

现在GreatSQL Shell没有for glibc2.17的版本,需要的话得自 ...

# ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, 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.
#

yejr 发表于 2024-5-9 08:48:13

阮波 发表于 2024-5-8 21:19
# ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc. ...

看起来glibc版本是一样的,按理说不应该报错才对

不行就考虑用Docker方式运行吧,参考 https://gitee.com/GreatSQL/GreatSQL-Docker/tree/master/GreatSQL-Shell

或者在你的环境下自行编译二进制包,参考 https://gitee.com/GreatSQL/GreatSQL-Docker/tree/master/GreatSQL-Shell-Build
页: [1]
查看完整版本: openEuler环境运行greatsql-shell-8.0.32-25-glibc2.28-x86_64 报错