使用make_ext4fs时报错,No such file or directory

make_ext4fs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
一般出现该错误是由于应用程序是32位导致的,可以使用file命令来查看:
root@ubuntu:/usr/local/bin# file make_ext4fs
make_ext4fs: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
可以从上面看到make_ext4fs为32位程序,所以我们需要让64位机支持运行32位应用。
执行下面两条命令即可解决问题:
apt-get install lib32c-dev
apt-get install lib32stdc++6
再运行make_ext4fs就不会报错了

posted @ 2017-07-28 16:17  不明白就去明白  阅读(1240)  评论(0编辑  收藏  举报