运行 make 时出错:缺少分隔符(您的意思是 TAB 而不是 8 个空格?) [英] Error running make: missing separator (did you mean TAB instead of 8 spaces?)

查看:66
本文介绍了运行 make 时出错:缺少分隔符(您的意思是 TAB 而不是 8 个空格?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 ( ).

  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

解决方案

(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.

这篇关于运行 make 时出错:缺少分隔符(您的意思是 TAB 而不是 8 个空格?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆