原因:
出現這個錯誤的原因通常是tab格式錯誤導致的。Makefile的命令行必須以一個tab作為開頭, 不可用4個空白。
在~/.vimrc文件中添加:
set tabstop=4 //設置tab鍵是4個空格
set noexpandtab //不把tab键用空格代替
查看目前的Makefile是否有tab鍵
cat -t Makefile
當你看到^I代表tab。出問題的命令行如果前面是有空白, 代表該命令的指令是需要修改的
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)