操作系统找不到真正的

2024-09-30 18:30:21 发布

您现在位置:Python中文网/ 问答频道 /正文

这在python构建中发生:

#is it executable
print os.access("support/d8/d8", os.X_OK)
#is it there in the shell
os.system("test -f support/d8/d8 && echo \"found\" || echo \"not found\"")

然后:

^{pr2}$

哪些输出:

True
found
sh: 1: support/d8/d8: not found

我不明白。它在那里,它是可执行的。为什么我开始的时候它不在那里。在


Tags: httpsechotravissupportisos链接not
3条回答

您正在运行一个x86的32位可执行文件^{}(顺便说一下,尽管有comment)。如果(Travis)系统是x64,和/或没有所有x86_32库

  • linux-gate.so.1
  • libpthread.so.0
  • libstdc++.so.6
  • libm.so.6
  • libgcc_s.so.1
  • libc.so.6

然后,可执行文件将无法运行,因为加载程序无法找到所有必需的库。静态构建和/或x64。在

如果您的文件“support/d8/d8”有一个不存在的“bang line”,则会发生此错误

^{1}$

你为什么不试试这个:

^{1}$

我在执行./is some时也遇到了类似的问题。在

相关问题 更多 >