问题
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 devkit
s 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