簡體   English   中英

使用Pik將Ruby更新到2.0.0

[英]Updating Ruby to 2.0.0 using Pik

安裝pik並將我的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的麻煩。 我該如何解決這個問題,以便將來我可以輕松地使用pik更新ruby,並使一切正常工作?

我遇到了同樣的問題-如果您按照列出的說明進行操作(即安裝devkit並遵循其說明[它們實際上並沒有告訴您使用rubyinstaller]),則可以。 還要確保在Devkit說明的初始化階段中,它不會錯過任何紅寶石安裝。

不過請注意,似乎pik無法指定2.0.0的x64版本,因此,在這種情況下,您可能會遇到問題。 最后,我必須將rubyinstaller用於x64版本的ruby,然后運行x64版本的devkit。

希望這可以幫助。

我認為Josh的答案可能是正確的,但實際上我最終將Ubuntu安裝為VM ,以便可以使用RVM。

RVM比Pik好一千倍,它安裝了DevKit。 太好了,真的值得安裝Ubuntu,以便您可以使用它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM