Elastic实战:kibana7.13.0 for m1安装报错Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found

简介: centos for m1启动kibana7.13.0报错

问题

centos for m1启动kibana7.13.0报错

Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/local/kibana-7.13.0-linux-aarch64/node_modules/re2/build/Release/re2.node)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at Module.Hook._require.Module.require (/var/local/kibana-7.13.0-linux-aarch64/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/var/local/kibana-7.13.0-linux-aarch64/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/var/local/kibana-7.13.0-linux-aarch64/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/var/local/kibana-7.13.0-linux-aarch64/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/var/local/kibana-7.13.0-linux-aarch64/node_modules/require-in-the-middle/index.js:80:39)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/var/local/kibana-7.13.0-linux-aarch64/node_modules/re2/re2.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)

 FATAL  Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/local/kibana-7.13.0-linux-aarch64/node_modules/re2/build/Release/re2.node)

解决

1、执行以下命令,查找编译gcc时生成的最新动态库

find / -name "libstdc++.so*"

输出路径如下:

/var/local/elasticsearch-7.13.0/modules/x-pack-ml/platform/linux-aarch64/lib/libstdc++.so.6
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.19 // 最新动态库
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.py
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyo 

2、因为上述es启动是没有报错的,所以推测es的动态库是完整的,因此将es的动态库覆盖到/usr/lib64目录下(提前做好备份)

cp /var/local/elasticsearch-7.13.0/modules/x-pack-ml/platform/linux-aarch64/lib/libstdc++.so.6 /usr/lib64

注意:我这里是es7.13.0与kibana安装在同一台虚拟机上的, 如果es不在同一台服务器,可将es中下述的libstdc++.so.6文件复制到kibana服务器中的/usr/lib64

scp /var/local/elasticsearch-7.13.0/modules/x-pack-ml/platform/linux-aarch64/lib/libstdc++.so.6 root@192.168.244.11:/usr/lib64

3、检查动态库

strings /usr/lib64/libstdc++.so.6 | grep GLIBC

4、重新启动kibana,正常
在这里插入图片描述

相关实践学习
阿里云图数据库GDB入门与应用
图数据库(Graph Database,简称GDB)是一种支持Property Graph图模型、用于处理高度连接数据查询与存储的实时、可靠的在线数据库服务。它支持Apache TinkerPop Gremlin查询语言,可以帮您快速构建基于高度连接的数据集的应用程序。GDB非常适合社交网络、欺诈检测、推荐引擎、实时图谱、网络/IT运营这类高度互连数据集的场景。 GDB由阿里云自主研发,具备如下优势: 标准图查询语言:支持属性图,高度兼容Gremlin图查询语言。 高度优化的自研引擎:高度优化的自研图计算层和存储层,云盘多副本保障数据超高可靠,支持ACID事务。 服务高可用:支持高可用实例,节点故障迅速转移,保障业务连续性。 易运维:提供备份恢复、自动升级、监控告警、故障切换等丰富的运维功能,大幅降低运维成本。 产品主页:https://www.aliyun.com/product/gdb
目录
相关文章
|
6月前
|
缓存 资源调度 JavaScript
server error: Preprocessor dependency “less“ not found. Did you install it?
server error: Preprocessor dependency “less“ not found. Did you install it?
503 0
|
关系型数据库 MySQL Linux
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
273 0
|
6月前
|
人工智能 Ubuntu 机器人
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
623 0
|
4月前
|
关系型数据库 MySQL Linux
error: Failed dependencies: libncurses.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 libtinfo.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 如何解决?
error: Failed dependencies: libncurses.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 libtinfo.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 如何解决?
484 3
|
6月前
|
Python
错误:/lib64/libc.so.6: version `GLIBC_2.14’ not found 解决办法
错误:/lib64/libc.so.6: version `GLIBC_2.14’ not found 解决办法
259 0
|
Linux C++
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found问题解决方法
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found问题解决方法
1983 0
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
|
关系型数据库 MySQL 数据安全/隐私保护
CENTOS8.4下安装MySQL5.7兼容error whil loading shared libraries :
CENTOS8.4下安装MySQL5.7兼容error whil loading shared libraries :
CENTOS8.4下安装MySQL5.7兼容error whil loading shared libraries :
|
Python
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)
705 0
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
582 0
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)