我试图运行一个脚本,它存在于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
我正在运行64位的debian,但文件是linux32可以相关吗?
这不仅是相关的,而且是错误的直接原因。
当您尝试在不支持32位运行时的情况下在64位系统上运行32位可执行文件时,会显示此令人误解的错误。 这不是缺less的./steamcmd ,而是它的加载器。
有关详细说明,请参阅在Unix.SE 上的64位系统上运行32位二进制文件时获取“未find”消息的答案。
build议Debian的解决scheme是安装多架构支持:
dpkg --add-architecture i386 && apt-get update
检查脚本的第一行。 如果您正在使用“#!” 要引用一个可执行文件(例如一个shell),请确保所引用的文件是:存在并可由用户试图运行steamcmd访问。
例如,如果你有:
“#!/斌/庆典”
在第一行中,/ bin / bash需要存在。 看起来你是根,所以访问不应该是一个问题。 确保在文件path中没有任何多余的空格,或者在行尾有不可打印的字符。