2013-10-11 43 views
0

After installing pik and changing my Ruby version to 2.0.0,捆綁沒有長期正常工作更新的Ruby 2.0.0使用碧雲

C:\Users\Me\Documents\Work Projects\Application>bundle install 
Fetching gem metadata from https://rubygems.org/......... 
Fetching gem metadata from https://rubygems.org/.. 
Using rake (10.1.0) 
Using i18n (0.6.5) 
Using minitest (4.7.5) 
Using multi_json (1.8.0) 
Installing atomic (1.1.14) 
Gem::InstallError: The 'atomic' native gem requires installed build tools. 

Please update your PATH to include build tools or download the DevKit 
from 'http://rubyinstaller.org/downloads' and follow the instructions 
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' 
An error occurred while installing atomic (1.1.14), and Bundler cannot continue. 
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling. 

Ruby Installer那種失敗的,爲什麼我去安裝碧雲的麻煩的原因安裝的devkit。我該如何解決這個問題,以便將來可以使用pik輕鬆更新ruby,並且仍然能夠正常工作?

+0

[這是否有幫助](http://stackoverflow.com/a/17590349/1270789)? –

回答

1

我有同樣的問題 - 如果你按照說明listed(即安裝devkit和他們的方向[他們實際上並沒有告訴你使用rubyinstaller]),你會沒事的。另外請確保在Devkit指令的初始階段,它不會錯過任何ruby安裝。

儘管如此,似乎pik無法指定2.0.0的x64版本,因此如果出現這種情況,您可能會遇到問題。最後,我不得不使用rubyinstaller作爲x64版本的ruby,然後運行x64版本的devkit。

希望這會有所幫助。

+0

絕對贊同Starkers,RVM是首選。儘管我的Macbook死了,這就是爲什麼我已經降級到我的電腦盒開發。乾杯 – Josiah

+0

如果你們其中一人遇到這個問題,你可能想在這裏檢查webdevgguy的答案:http://stackoverflow.com/questions/18291664/error-installing-atomic – jazzytomato

0

我想喬希的回答可能是對的,但我實際上是installed Ubuntu as a VM到底,只是讓我可以使用RVM。

RVM比Pik好一千倍,它安裝了DevKit。它非常好,真正值得安裝Ubuntu,所以你可以使用它。