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

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

问题描述

我是红宝石的新手.我尝试按照网站 http://rubygems.org/pages中给出的步骤在PC上安装Ruby Gems. /download .

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.

推荐答案

我建议您只使用 ruby​​installer

这是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.
  • On Linux/UNIX, you can use the package management system of your distribution or third-party tools (rbenv and RVM).
  • On OS X machines, you can use third-party tools (rbenv and RVM).
  • On Windows machines, you can use RubyInstaller.

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

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