2013-01-09 63 views
1

無法在Mac OS X系統(10.8.2),並安裝這些工具:大廈ember.js在OS X 10.8.2

  • 紅寶石,1.9.3p362(2012-12-25修訂38607經由gem install bundler
  • 耙)[x86_64的-darwin12.2.0],通過釀造
  • 捆紮機,1.2.3,10.0.3經由gem install rake

不可能從源代碼編譯灰燼。下面是運行rake dist當錯誤日誌:

± ~/dev/ember.js (master ✓) ⚡ rake dist 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25: warning: redundant nested repeat operator 
rake aborted! 
cannot load such file -- bundler/setup 
/Users/foo/dev/ember.js/Rakefile:3:in `<top (required)>' 
(See full trace by running task with --trace) 

± ~/dev/ember.js (master ✓) ⚡ rake dist --trace 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25: warning: redundant nested repeat operator 
rake aborted! 
cannot load such file -- bundler/setup 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/Users/foo/dev/ember.js/Rakefile:3:in `<top (required)>' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:70:in `run' 
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/rake-10.0.3/bin/rake:33:in `<top (required)>' 
/usr/local/Cellar/ruby/1.9.3-p362/bin/rake:23:in `load' 
/usr/local/Cellar/ruby/1.9.3-p362/bin/rake:23:in `<main>' 

從具有看看灰燼數據建立#emberjs說明和討論,看來你需要運行bundle第一。儘管它最終會提示管理員密碼「將捆綁的RubyGems安裝到您的系統」,但仍能成功安裝一些捆綁軟件包。

如果您運行此命令查看安裝了哪些gem,可以看到一個gem特別拒絕安裝。根據建議運行bundle install不會解決此問題。

± ~/dev/ember.js (master ✓) ⚡ bundle exec rake -T 
https://github.com/pangratz/github_downloads.git (at master) is not checked out. Please run `bundle install` 

Twitter的建議是運行bundle rake dist。這將產生:

± ~/dev/ember.js (master ✓) ⚡ bundle rake dist 
Could not find task "rake". 

,另一個爲bundle exec rake dist

± ~/dev/ember.js (master ✓) ⚡ bundle exec rake dist 
https://github.com/pangratz/github_downloads.git (at master) is not checked out. Please run `bundle install` 

運行bundle install在這一點上安裝寶石的名單,但要求在年底報告成功的管理員密碼。一個來自#emberjs的想法是,這意味着它將寶石安裝到我的系統中,而不是沙盒環境,並且這裏是真正的問題。

可以做些什麼來克服這種捆綁/耙子錯誤?

回答

1

這裏是爲我工作的解決方案:

cd <your ember clone> 
curl -L https://get.rvm.io | bash -s stable --ruby 
rvm install 1.9.3 
rvm use 1.9.3 
rvm rubygems latest 
bundle install 
rake dist