简体   繁体   English

如何在Windows上升级到ruby 2.0?

[英]How do I upgrade to ruby 2.0 on windows?

I just installed pik into c:\\bin . 我刚刚将pik安装到c:\\bin I typed in pik list , and it shows: 我输入了pik list ,它显示:

* 193: ruby 1.9.3p484 <2013-11-22> [i386-mingw32]
  200: ruby 2.0.0p195 <2013-05-14. [i386-mingw32].

I typed in: c:\\bin> pik use 200 and c:\\bin>ruby -v and get the following error. 我输入: c:\\bin> pik use 200c:\\bin>ruby -v并得到以下错误。

'ruby' is not recognised as an internal or external command, operable program or batch file. “ ruby​​”未被识别为内部或外部命令,可操作程序或批处理文件。

What might cause this, and how do I resolve it to properly upgrade to Ruby 2.0? 可能是什么原因导致的?如何解决以正确升级到Ruby 2.0?

It occurred cause RUBY is not a command that described for Windows Command Prompt. 发生的原因是RUBY不是Windows命令提示符中描述的命令。 You should first go the app you want interact with it. 您首先应该转到要与之交互的应用程序。 For this, you should write the path of it in Command Prompt. 为此,您应该在命令提示符下编写其路径。 But I offer use Ruby Installer ( http://rubyinstaller.org/downloads/ ) that's more comfortable. 但是我提供了更舒适的使用Ruby Installer( http://rubyinstaller.org/downloads/ )。 It will install all the packages are required simultaneously 它将同时安装所有需要的软件包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM