mkfs.ext4: undefined symbol: ext2fs_numeric_progress_ops或 set_com_err_gettext
作者:互联网
mkfs.ext4: symbol lookup error: mkfs.ext4: undefined symbol: ext2fs_numeric_progress_ops或 set_com_err_gettext
vgextend vg_mysqlsoft /dev/sdc7
lvcreate -n lv_MariaDB_104 -L 3G vg_mysqlsoft
mkfs.ext4 /dev/vg_mysqlsoft/lv_MariaDB_104
mkdir /usr/local/MariaDB_104
mount /dev/vg_mysqlsoft/lv_MariaDB_104 /usr/local/MariaDB_104
报错:
[root@rhel6lhr ~]# mkfs.ext4 /dev/vg_mysqlsoft/lv_MariaDB_104
mkfs.ext4: symbol lookup error: mkfs.ext4: undefined symbol: ext2fs_numeric_progress_ops
[root@rhel6lhr ~]# ldd /sbin/mkfs.ext4
linux-vdso.so.1 => (0x00007fffdad90000)
libext2fs.so.2 => /lib64/libext2fs.so.2 (0x00007f53c9c61000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f53c9a5d000)
libblkid.so.1 => /lib64/libblkid.so.1 (0x0000003a43800000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003a4a400000)
libe2p.so.2 => /lib64/libe2p.so.2 (0x00007f53c9855000)
libc.so.6 => /lib64/libc.so.6 (0x0000003a3f800000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a3fc00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003a3f000000)
下面的错误的处理办法也是一样的:
fsck.ext4:symbo1 lookup error :fsck.ext4:undefined symbol : set_com_err_gettext
解决:
找一个正确的相同版本的OS,然后拷贝文件 /lib64/libext2fs.so.2、/lib64/libcom_err.so.2和/sbin/fsck.ext4、/sbin/mkfs.ext4,覆盖有问题的OS的文件,再次运行即可。
标签:ext4,undefined,err,symbol,mkfs,so.2,lib64,104 来源: https://blog.51cto.com/lhrbest/2707641