GreatSQL社区

搜索

[已解决] openEuler环境运行greatsql-shell-8.0.32-25-glibc2.28-x86_64 报错

634 5 2024-5-6 22:12


运行环境:
[root@mgr1 bin]# 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"

[root@mgr1 bin]# openssl  version
BabaSSL 8.3.2
OpenSSL 1.1.1h  22 Sep 2020
[root@mgr1 bin]# pwd
/root/greatsql-shell-8.0.32-25-glibc2.28-x86_64/bin
[root@mgr1 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
[root@mgr1 bin]#


运行报错:

[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


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

全部回复(5)
yejr 2024-5-7 08:50:09
运行
  1. ldd --version
复制代码
看看你的glibc版本号多少,应该是不匹配

现在GreatSQL Shell没有for glibc2.17的版本,需要的话得自行编译,可以参考 https://gitee.com/GreatSQL/Great ... reatSQL-Shell-Build
yejr 2024-5-7 08:51:00
也可以考虑用docker方式运行GreatSQL Shell,参考 https://gitee.com/GreatSQL/Great ... ster/GreatSQL-Shell
reddey 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的版本,需要的话得自 ...

[root@mgr1 ~]# 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.
[root@mgr1 ~]#
yejr 2024-5-9 08:48:13
阮波 发表于 2024-5-8 21:19
[root@mgr1 ~]# ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc. ...

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

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

或者在你的环境下自行编译二进制包,参考 https://gitee.com/GreatSQL/Great ... reatSQL-Shell-Build
阮波

3

主题

0

博客

33

贡献

新手上路

Rank: 1

积分
38

GreatSQL Certified AssociateGreatSQL Certified Professional

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-12-4 16:15 , Processed in 0.022216 second(s), 18 queries , Redis On.
快速回复 返回顶部 返回列表