bash: ./make_ext4fs: No such file or directory 錯誤解決方法
一般出現該錯誤是因為應用程序是32位導致的,能夠使用file命令來查看:
[email protected]:~/Desktop$ 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, not stripped [email protected]:~/Desktop$能夠從上面看到make_ext4fs為32位程序,所以我們須要讓64位機支持執行32位應用。
運行以下兩條命令就可以解決這個問題:
sudo apt-get install lib32c-dev
sudo apt-get install lib32stdc++6
再執行make_ext4fs就不會報錯了:
[email protected]:~/Desktop$ ./make_ext4fs Expected filename after options make_ext4fs [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ] [ -g <blocks per group> ] [ -i <inodes> ] [ -I <inode size> ] [ -L <label> ] [ -f ] [ -a <android mountpoint> ] [ -S file_contexts ] [ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ] <filename> [<directory>] [email protected]
bash: ./make_ext4fs: No such file or directory 錯誤解決方法