gpt4 book ai didi

linux - 运行 make : missing separator (did you mean TAB instead of 8 spaces? 时出错)

转载 作者:太空狗 更新时间:2023-10-29 11:05:02 27 4
gpt4 key购买 nike

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

(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

现在在第 5 步之后出现错误:

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

据我所知,此错误消息可能有两种可能的原因:

  1. make 文件中的选项卡。我用 od -t c Makefile 测试了这个文件。该文件不包含制表符 (\t)。

  2. 它可能是一个 bug make v3.81 需要 patch或升级到(但不稳定:“Warning: This package is from the experimental distribution.”)v3.82。我有 downloaded并安装了 (dpkg -i make_3.82-1_amd64.deb),但错误仍然存​​在。

错误的原因是什么?如何避免?

谢谢

最佳答案

(在评论中回答:参见 Question with no answers, but issue solved in the comments (or extended in chat) )

@Beta 写道:

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

OP 写道:

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

关于linux - 运行 make : missing separator (did you mean TAB instead of 8 spaces? 时出错),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15387273/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com