2012-09-26 31 views
0

我在Linux上安裝hubot,並且遵循the instructions,沒有收到任何錯誤。部署Hubot時發生巨大的一系列錯誤

但是,當我試圖實際運行我的hubot時,遇到問題。首先,我根據鏈接教程最後的說明嘗試了daemonization hubot。 start hubot返回了錯誤start: Unknown job: hubot。所以我備份,並試圖/opt/hubot/bin/hubot --name Ro\ Bot --adapter campfire,得到了這一系列的錯誤:

/opt/hubot/bin/hubot: line 11: Hubot: command not found 
/opt/hubot/bin/hubot: line 12: Fs: command not found 
/opt/hubot/bin/hubot: line 13: Path: command not found 
/opt/hubot/bin/hubot: line 14: HTTP: command not found 
/opt/hubot/bin/hubot: line 15: Creator: command not found 
/opt/hubot/bin/hubot: line 16: OptParse: command not found 
/opt/hubot/bin/hubot: line 18: Switches: command not found 
/opt/hubot/bin/hubot: line 19: [: missing `]' 
/opt/hubot/bin/hubot: line 20: [: missing `]' 
/opt/hubot/bin/hubot: line 21: [: missing `]' 
/opt/hubot/bin/hubot: line 22: [: missing `]' 
/opt/hubot/bin/hubot: line 23: [: missing `]' 
/opt/hubot/bin/hubot: line 24: [: missing `]' 
/opt/hubot/bin/hubot: line 25: [: missing `]' 
/opt/hubot/bin/hubot: line 26: [: --version,: binary operator expected 
/opt/hubot/bin/hubot: line 27: ]: command not found 
/opt/hubot/bin/hubot: line 29: Options: command not found 
/opt/hubot/bin/hubot: line 30: adapter:: command not found 
/opt/hubot/bin/hubot: line 31: alias:: command not found 
/opt/hubot/bin/hubot: line 32: create:: command not found 
/opt/hubot/bin/hubot: line 33: enableHttpd:: command not found 
/opt/hubot/bin/hubot: line 34: name:: command not found 
/opt/hubot/bin/hubot: line 35: path:: command not found 
/opt/hubot/bin/hubot: line 37: syntax error near unexpected token `(' 
/opt/hubot/bin/hubot: line 37: `Parser = new OptParse.OptionParser(Switches)' 

試圖從發佈包,而不是克隆的git的成果安裝在前面的過程中不同的錯誤:

[email protected]:/opt# wget https://github.com/downloads/github/hubot/hubot-2.2.0.tar.gz 
[email protected]:/opt# npm install 

npm ERR! Couldn't read dependencies. 

npm ERR! Error: ENOENT, no such file or directory '/opt/package.json' 
npm ERR! System Linux 2.6.35.4-rscloud 
npm ERR! command "node" "/usr/local/bin/npm" "install" 
npm ERR! cwd /opt 
npm ERR! node -v v0.6.9 
npm ERR! npm -v 1.1.0-3 
npm ERR! path /opt/package.json 
npm ERR! code ENOENT 
npm ERR! message ENOENT, no such file or directory '/opt/package.json' 
npm ERR! errno {} 
npm not ok 

我試着npm cache clean但它沒有幫助。

我不知道該怎麼做,我對Hubot或其運行的任何框架並不熟悉,因此有關如何開始排除故障的任何信息都會有所幫助。

回答

0

我懷疑你沒有按照上面引用的「將Hubot部署到UNIX上」鏈接中的「安裝依賴項」部分。具體來說,看起來像bash這樣的常規shell正試圖解釋腳本而不是咖啡腳本解釋器。如果您在shell提示符下輸入

coffee 

,並沒有得到

coffee> 

提示,重溫的安裝說明的第一部分。

+0

我確實按照「安裝依賴關係」部分,當我在我的shell提示符下鍵入'coffee'時,確實得到'coffee>'作爲提示。我應該從'coffee>'提示符運行我的Hubot命令嗎? – beth

1

嘗試安裝從the release package而不是從git clone安裝),這解決了一些隨機問題對我來說。

+0

我試過了,得到了不同的錯誤。編輯op以包含信息。 – beth

+0

在你的wget之後,你需要解壓縮.tgz(gunzip,tar -xvf),它會解壓到一個「hubot」目錄,然後在這個新的目錄下「npm install」。 HTH – Nick

相關問題