You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

M1 Mac使用Makefile时持续报错‘*** missing separator. Stop.’的问题求助

M1 Mac使用Makefile时持续报错‘*** missing separator. Stop.’的问题求助

大家好,我目前碰到了一个让我百思不得其解的问题:我使用的是搭载M1芯片的Mac,在项目中尝试使用Makefile时,无论怎么操作都会弹出*** missing separator. Stop.的错误。

我先后用了TextEdit、VSCode和IntelliJ这几款编辑器来编写Makefile,但结果完全一致,还是报错。甚至我直接复制了网上教程里的基础hello示例Makefile,原以为是自己语法没搞对,可还是跑不起来。

我的Makefile内容如下:

hello:
echo "Something"

#build:

#.   go build -o bin/apigateway

#run: build

#.   ./bin/apigateway

#test:

#.   go test -v ./..

我查看了当前make的版本信息,输出结果是:

make --version

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

我现在真的很困惑,到底是哪里忽略了?有没有大佬能帮我分析一下问题所在?

备注:内容来源于stack exchange,提问作者black sensei

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 08:44:41