Why won't Pik install Ruby?

2019-06-27 03:57发布

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?

2条回答
可以哭但决不认输i
2楼-- · 2019-06-27 04:20

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)

查看更多
不美不萌又怎样
3楼-- · 2019-06-27 04:23

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.

查看更多
登录 后发表回答