当前位置:   article > 正文

启动mysql的时候报错/error while loading shared libraries: libatomic.so.1: cannot open shared object file:

error while loading shared libraries: libatomic.so.1: cannot open shared obj

 /home/aitpm/software/mysql-5.7.27-aarch64/bin/my_print_defaults: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

/home/aitpm/software/mysql-5.7.27-aarch64/bin/my_print_defaults: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Logging to '/home/aitpm/software/mysql-5.7.27-aarch64/data/kubeMaster.err'

 

启动mysql的时候是这样的报错

首先查看是不是mysql 安装之前没有安装依赖包,

[root@kubeMaster ~]# ldd $(which /home/aitpm/software/mysql-5.7.27-aarch64/bin/my_print_defaults)

linux-vdso.so.1 =>  (0x0000ffffb2400000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x0000ffffb23a0000)

librt.so.1 => /lib64/librt.so.1 (0x0000ffffb2370000)

libatomic.so.1 => not found

libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000ffffb2240000)

libm.so.6 => /lib64/libm.so.6 (0x0000ffffb2180000)

libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000ffffb2140000)

libc.so.6 => /lib64/libc.so.6 (0x0000ffffb1fb0000)

/lib/ld-linux-aarch64.so.1 (0x0000ffffb2410000)

发现其中一个是发现不了的

然后find一下,在本机上,如果没找到就,yum install  libatomic.so.1

若是找到了,就将文件cp到 /usr/lib  或者是 、/usr/lib64  中 即可

然后再重新启动就不会报libatomic.so.1

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/492581
推荐阅读
相关标签
  

闽ICP备14008679号