Linux
安裝 s3fs 後在 Amazon Linux 上執行 mount 時出錯(未找到 mount 所需的`MOUNT_2.22’)
按照這些說明在 Amazon Linux 上安裝s3fs 。
它在我的一個系統上執行良好,但是在不同的系統上(遵循相同的說明)執行 /bin/mount 時出現以下錯誤
[root@ip-10-99-1-35 lib64]# mount mount: /lib64/libmount.so.1: version `MOUNT_2.21' not found (required by mount) mount: /lib64/libmount.so.1: version `MOUNT_2.22' not found (required by mount) mount: /lib64/libmount.so.1: version `MOUNT_2.20' not found (required by mount)
編輯:我應該提一下,它只是出現上述錯誤之一(2.20),但是,當我開始遇到問題時,我嘗試安裝 v2.21 和 v2.22 版本的 util-linux 源包。
在掛載上執行 ldd,我明白了
[root@ip-10-99-1-35 lib64]# ldd /bin/mount /bin/mount: /lib64/libmount.so.1: version `MOUNT_2.21' not found (required by /bin/mount) /bin/mount: /lib64/libmount.so.1: version `MOUNT_2.22' not found (required by /bin/mount) /bin/mount: /lib64/libmount.so.1: version `MOUNT_2.20' not found (required by /bin/mount) linux-vdso.so.1 => (0x00007fff507ff000) libmount.so.1 => /lib64/libmount.so.1 (0x00007f5e9331a000) libblkid.so.1 => /lib64/libblkid.so.1 (0x00007f5e930f9000) libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f5e92ef4000) libc.so.6 => /lib64/libc.so.6 (0x00007f5e92b62000) /lib64/ld-linux-x86-64.so.2 (0x00007f5e93533000)
/lib64 中的相應文件
lrwxrwxrwx 1 root root 17 Jul 30 15:25 /lib64/libmount.so.1 -> libmount.so.1.1.0 -rwxr-xr-x 1 root root 61728 Jul 28 2011 /lib64/libmount.so.1.1.0
發行資訊
[ec2-user@ip-10-99-1-35 ~]$ cat /etc/issue Amazon Linux AMI release 2012.03 Kernel \r on an \m [ec2-user@ip-10-99-1-35 ~]$ uname -a Linux ip-10-99-1-35 3.2.20-1.29.6.amzn1.x86_64 #1 SMP Tue Jun 12 01:19:28 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
我解決了重新安裝 util-linux 軟體包的問題。
yum reinstall util-linux