其他分享
首页 > 其他分享> > Superset 安装报错: libbz2.so.1.0: cannot open shared object file: No such file or directory

Superset 安装报错: libbz2.so.1.0: cannot open shared object file: No such file or directory

作者:互联网

今天在部署Superset到linux centos7.6的时候,执行superset db upgrade,报以下错误
    pbzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

刚开始,以为此软件没有安装,于是yum install bzip2-libs 。安装之后,依然报错。后来使用find / -name libbz2.so查找文件位置,发现都在/usr/lib64/目录下,那我就在此目录中,
做一个软链接libbz2.so.1.0,指向已经有的libbz2.so.1.0.6

(superset) [root@ss4 lib-dynload]# ll libbz2*
-rwxr-xr-x 1 root root 68192 Nov  2 15:13 libbz2.so.1
lrwxrwxrwx 1 root root    11 Nov  2 15:14 libbz2.so.1.0 -> libbz2.so.1
(superset) [root@ss4 lib-dynload]# cd /usr/lib64/
(superset) [root@ss4 lib64]# ls -alhtr | grep libbz2.so.1
-rwxr-xr-x.  1 root root  67K Nov 20  2015 libbz2.so.1.0.6
lrwxrwxrwx.  1 root root   15 Jul  5  2019 libbz2.so.1 -> libbz2.so.1.0.6
lrwxrwxrwx   1 root root   11 Nov  2 10:32 libbz2.so -> libbz2.so.1
(superset) [root@ss4 lib64]# ln -s libbz2.so.1.0.6  libbz2.so.1.0
(superset) [root@ss4 lib64]# ls -alhtr | grep libbz2.so.1
-rwxr-xr-x.  1 root root  67K Nov 20  2015 libbz2.so.1.0.6
lrwxrwxrwx.  1 root root   15 Jul  5  2019 libbz2.so.1 -> libbz2.so.1.0.6
lrwxrwxrwx   1 root root   11 Nov  2 10:32 libbz2.so -> libbz2.so.1
lrwxrwxrwx   1 root root   15 Nov  2 15:19 libbz2.so.1.0 -> libbz2.so.1.0.6

之后再次执行superset db upgrade,就正常了

总结
        感谢能看到这里的朋友

标签:libbz2,0.6,so.1,报错,file,Nov,superset,root
来源: https://blog.csdn.net/suwei825/article/details/121101236