我正在尝试运行一个脚本,它存在于ls可见但是当我尝试运行它时,它说“没有这样的文件或目录”是什么给出的?
root@rx-texas:/home/7days/linux32# root@rx-texas:/home/7days/linux32# ls libstdc++.so.6 steamcmd root@rx-texas:/home/7days/linux32# ./steamcmd -bash: ./steamcmd: No such file or directory root@rx-texas:/home/7days/linux32# less steamcmd "steamcmd" may be a binary file. See it anyway?
我正在运行64位Debian,但文件是linux32可能是相关的吗?
这里也是ls -la的输出:
drwxrwxrwx 2 7days 7days 4096 Apr 22 2013 . drwxrwxrwx 3 7days 7days 4096 Jan 9 22:44 .. -rwxrwxrwx 1 7days 7days 3807525 Apr 22 2013 libstdc++.so.6 -rwxrwxrwx 1 7days 7days 5642610 Feb 5 2013 steamcmd
ldd steamcmd的输出:
not a dynamic executable
解决方法
I’m running 64-bit debian but the file is linux32 could it be related?
它不仅相关,而且是错误的直接原因.
当您尝试在不支持安装32位运行时的64位系统上运行32位可执行文件时,将显示此误导性错误.它不是缺少的./steamcmd,而是它的加载器.
有关详细说明,请参阅Unix.SE上的Getting “Not found” message when running a 32-bit binary on a 64-bit system下的答案.
dpkg --add-architecture i386 && apt-get update