【发布时间】:2015-02-03 16:12:58
【问题描述】:
最近在看朋友推荐的csapp这本书。完成实验作业时发生了事情datalab-handout(需要下载)。
当我尝试在 MacOSX Yosemite 中运行此命令时:
./dlc bits.c
错误信息是:
-bash: ./dlc: cannot execute binary file
附言这是我执行命令时的输出:
1tekiMacBook-Air:datalab-handout 1$ uname -a
Darwin 1tekiMacBook-Air.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
1tekiMacBook-Air:datalab-handout 1$ file dlc
dlc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
有人可以帮帮我吗?非常感谢。
【问题讨论】:
标签: c macos unix binaryfiles