Error running make: missing separator (did you mean TAB instead of 8 spaces?)

纵然是瞬间 提交于 2019-12-18 13:38:40

问题


I'm trying to get PHP phar command line tool installed on my Debian VM, how here described:

(1) download the php-src, I assume it's in /tmp/php/src

(2) make the dir /tmp/phar

(3) Save this as /tmp/php-src/ext/phar/Makefile.

(4) cd /tmp/php-src/ext/phar

(5) run sudo make

Now after step 5 I get an error:

:/tmp/php-src/ext/phar# make
Makefile:11: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

As I know, there can be two possible causes for this error message:

  1. Tabs in the make file. I've tested the file with od -t c Makefile. The file contains no tabs (\t).

  2. It could be a bug of make v3.81 and need a patch or an upgrade to (yet instable: "Warning: This package is from the experimental distribution.") v3.82. I've downloaded and istalled (dpkg -i make_3.82-1_amd64.deb) it, but the error is still occuring.

What causes the error? How can it be avoided?

Thx


回答1:


(Answered in a comment: See Question with no answers, but issue solved in the comments (or extended in chat))

@Beta wrote:

The line should begin with a tab, not a bunch of spaces.

The OP wrote:

I've replaced all 8-spaces sequences with tabs and can execute the make script now.



来源:https://stackoverflow.com/questions/15387273/error-running-make-missing-separator-did-you-mean-tab-instead-of-8-spaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!