加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 尽管在ls中显示,但找不到文件

发布时间:2020-12-14 02:30:36 所属栏目:Linux 来源:网络整理
导读:我正在尝试运行一个脚本,它存在于ls可见但是当我尝试运行它时,它说“没有这样的文件或目录”是什么给出的? root@rx-texas:/home/7days/linux32#root@rx-texas:/home/7days/linux32# lslibstdc++.so.6 steamcmdroot@rx-texas:/home/7days/linux32# ./steamcm
我正在尝试运行一个脚本,它存在于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下的答案.

Debian建议的解决方案是安装多架构支持:

dpkg --add-architecture i386 && apt-get update

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读