2016-09-12 45 views
2

我按照our-boxen自述文件中的說明操作,但當我嘗試運行boxen時,我總是收到5個錯誤。運行boxen(our-boxen)時出現5個boxen錯誤

我做了所有建議在自制幫助頁面上的建議(brew安裝,brew醫生,檢查命令行工具/ xcode安裝)。

我有這4個錯誤,當我嘗試運行boxen。我會在github上創建一個問題,但我不確定這是否是我們的問題或自制問題。任何關於這些錯誤類型的方向都會很有幫助。

[/opt/boxen/repo]$ ./script/boxen 

這些都是錯誤的,我得到:

Error: env -i PATH=/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin CFLAGS=-I/opt/boxen/homebrew/include LDFLAGS=-L/opt/boxen/homebrew/lib /usr/bin/gem install aws-sdk-v1 returned 1 instead of one of [0] 
Error: /Stage[main]/Crowdtap::Environment/Exec[env -i PATH=/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin CFLAGS=-I/opt/boxen/homebrew/include LDFLAGS=-L/opt/boxen/homebrew/lib /usr/bin/gem install aws-sdk-v1]/returns: change from notrun to 0 failed: env -i PATH=/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin CFLAGS=-I/opt/boxen/homebrew/include LDFLAGS=-L/opt/boxen/homebrew/lib /usr/bin/gem install aws-sdk-v1 returned 1 instead of one of [0] 
Error: Could not update: Execution of 'brew boxen-install boxen/brews/kafka' returned 1: ==> Installing kafka from boxen/brews 
==> Downloading http://mirrors.ibiblio.org/apache/kafka/0.8.2.1/kafka-0.8.2.1-src.tgz 
Already downloaded: /opt/boxen/cache/homebrew/kafka-0.8.2.1-boxen1.tgz 
Error: Your OS X keychain GitHub credentials do not have sufficient scope! 
Scopes they have: [] 
Create a personal access token: https://github.com/settings/tokens 
and then set HOMEBREW_GITHUB_API_TOKEN as the authentication method instead. 
/usr/local/Library/Homebrew/utils/github.rb:212:in `raise_api_error': Validation Failed (GitHub::Error) 
Error: Execution of '/opt/rubies/1.9.3/bin/gem install 'rubocop' --version '~> 0.40' --source 'https://rubygems.org/' --no-rdoc --no-ri --verbose' returned 1: GET http://rubygems.org/specs.4.8.gz 

有沒有人看到這一點,知道如何解決這些問題?

回答

1

我意識到我的錯誤。我試圖克隆我無法訪問的回購,因此我轉而克隆了正確的boxen回購(https://github.com/boxen/our-boxen)。現在這工作正常。

[~]$ xcode-select --install 
[~]$ sudo rm -rf /opt/boxen 
[~]$ sudo mkdir -p /opt/boxen 
[~]$ sudo chown ${USER}:staff /opt/boxen 
[~]$ git clone https://github.com/crowdtap/our-boxen /opt/boxen/repo 
[~]$ cd /opt/boxen/repo 
[/opt/boxen/repo]$ git remote rm origin 
[/opt/boxen/repo]$ git remote add origin [email protected]:lydiastepanek/our-boxen.git 
[/opt/boxen/repo]$ git push -u origin master --force 
[/opt/boxen/repo]$ ./script/boxen