【问题标题】:Problems in running MakeFile运行 MakeFile 的问题
【发布时间】:2011-09-22 12:49:30
【问题描述】:

我正在尝试学习/使用inject_and_interpose 项目。

我遇到了make file 的问题。当我尝试在终端上执行 make 文件时,我收到以下错误消息。

i686-apple-darwin10-gcc-4.2.1: ?=: No such file or directory
i686-apple-darwin10-gcc-4.2.1: gcc: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
ARCH: Can't find any plists for ARCH
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 3: findstring: command not found
./Makefile: line 3: ifeq: command not found
ARCH: Can't find any plists for ARCH
./Makefile: line 5: endif: command not found
./Makefile: line 7: all:: command not found
./Makefile: line 9: testlib.dylib:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
ARCH: Can't find any plists for ARCH
./Makefile: line 10: -dynamiclib: command not found
./Makefile: line 11: tester:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 12: -O3: command not found
./Makefile: line 13: testputs:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 14: -o: command not found
./Makefile: line 15: clean:: command not found
rm: tester: is a directory

有人可以解释一下我需要做哪些更改才能正确运行此 make 文件吗?还是我做错了什么?

【问题讨论】:

  • 你是如何“执行”make 文件的?

标签: macos gcc makefile terminal


【解决方案1】:

Makefile 不打算由 sh 或朋友运行。你通过运行调用它

$ make

在makefile所在的目录中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-16
    • 1970-01-01
    相关资源
    最近更新 更多