Why won't Pik install Ruby?

狂风中的少年 提交于 2019-12-10 16:17:03

问题


After a failure trying to install Ruby on Rails from here: http://railsinstaller.org/, I am now trying to install things manually.

I thought I would install Pik first and then hit "pik install ruby" from the command prompt. Seemingly, nothing could be simpler than that. However, I am receiving the message "Ruby not found". How could this be?


回答1:


While the pik gem is no longer maintained, pik from here is still the best way to manage multiple ruby versions on windows. (Please someone write another one. Or talk Gordon Thiesfeld into letting someone else manage it.)

Setting up pik is painful (you are require to manually install the ruby versions, the required devkits and then tell pik to use them).

If you don't need multiple, ruby versions, I recommend you use the excellent installers from here and use gem install rails to get your windows, ruby on rails fix.




回答2:


it seems Pik cannot install Ruby automatically. It's just manager of ruby versions. In order to install Ruby on Windows it's necessary to use RubyInstaller for Windows http://rubyinstaller.org/downloads/ and then pik add C:\Ruby193\bin (or any other path to installed ruby)



来源:https://stackoverflow.com/questions/14470811/why-wont-pik-install-ruby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!