在 Windows 中安装 RubyGems [英] Installing RubyGems in Windows

查看:34
本文介绍了在 Windows 中安装 RubyGems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 ruby​​ 的新手.我尝试按照网站 http://rubygems.org/pages/中给出的步骤在我的 PC 上安装 Ruby Gems下载.

I'm new to ruby. I tried to install Ruby Gems on my PC by following the steps given in the site http://rubygems.org/pages/download.

我从上述站点下载了软件包,将目录更改为安装程序所在的目录,并尝试在命令提示符下使用命令 setup.rb 运行安装程序.

I downloaded the package from the mentioned site, changed the directory to the directory in which the setup resides, and tried to run setup using the command setup.rb in command prompt.

但是我弹出一个窗口,上面写着Windows 无法打开这个文件";并提示我选择一个程序来打开这个文件.

But I get a window pop up that says "Windows can't open this file" and prompts me to select a program to open this file.

我现在该怎么办?如果我做错了什么,请告诉我.

What should I do now? Let me know if I am doing something wrong.

推荐答案

我建议你只使用 rubyinstaller

Ruby 官方页面推荐 - 参见 https://www.ruby-lang.org/en/downloads/

It is recommended by the official Ruby page - see https://www.ruby-lang.org/en/downloads/

安装 Ruby 的方法

Ways of Installing Ruby

我们在每个主要平台上都有几个工具来安装 Ruby:

We have several tools on each major platform to install Ruby:

  • 在 Linux/UNIX 上,您可以使用自己的软件包管理系统分发或第三方工具(rbenv 和 RVM).
  • 在 OS X 机器上,您可以使用第三方工具(rbenv 和 RVM).
  • 在 Windows 机器上,您可以使用 RubyInstaller.

这篇关于在 Windows 中安装 RubyGems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆