2013-03-13 45 views
3

我試圖讓我的Debian VM,如何here描述安裝PHP phar命令行工具:錯誤運行make:缺少分隔符(你的意思是標籤,而不是8位?)

(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. 製作文件中的選項卡。我用od -t c Makefile測試了這個文件。該文件不包含選項卡(\t)。

  2. 這可能是make v3.81的bug,需要一個patch或升級到(但不穩定: 「Warning: This package is from the experimental distribution.」)v3.82。我已經downloaded和istalled(dpkg -i make_3.82-1_amd64.deb)它,但錯誤仍然存​​在。

什麼原因導致錯誤?如何避免?

THX

+11

線** **應從一個標籤開始,而不是一堆空格。 – Beta 2013-03-13 14:00:50

+1

我用製表符替換了所有的8-spaces序列,現在可以執行make腳本。謝謝! – automatix 2013-03-13 14:13:06

回答

相關問題