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

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

问题描述

我正在尝试在Debian VM上安装PHP phar 命令行工具,如何 here 描述:

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


(1)下载php-src,我假设它在/ tmp / php / src

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

(2) dir / tmp / phar

(2) make the dir /tmp/phar

(3)保存 as / tmp / php-src / ext / phar / Makefile。

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

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

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

(5)运行 sudo make

现在在第5步之后,我收到一个错误:

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. 制作文件中的标签。我已经使用 od -t c Makefile 测试了该文件。该文件不包含选项卡( \t )。

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

可能是 bug make v3.81,需要一个补丁或升级到(但不稳定:警告:此软件包来自实验发行版。)v3.82。我已经下载了并且已被保留( dpkg - 我make_3.82-1_amd64.deb ),但错误仍然发生。

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

推荐答案

评论:请参阅没有答案的问题,但问题在评论中解决(或在聊天中扩展)

@Beta写道:


应该的行以标签开头,而不是一堆空格。

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

OP写道:


''替换所有的8空格序列与标签,并可以执行make脚本现在。

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

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

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