在Windows中安装Ruby Gem [英] Installing Ruby Gem in Windows

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

问题描述

我是新来的红宝石。我尝试按照网站 http://rubygems.org/pages/download 中给出的步骤在我的电脑上安装GEM。

我从提及站点下载了软件包,并将目录更改为安装程序所在的目录,并尝试使用该命令运行安装程序,



setup.rb在命令提示符下。



但是我弹出一个窗口显示Windows无法打开此文件和提示我选择一个程序来打开这个文件。



现在我该怎么做?让我知道,如果我做错了什么。

解决方案

我建议您只使用 ruby​​installer



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


安装Ruby的方式



在每个主要平台上安装Ruby的工具有几种:




  • 在Linux / UNIX上,您可以使用
    分发包或第三方工具(rbenv和RVM)的包管理系统。

  • 在OS X机器上,您可以使用第三方工具(rbenv和RVM)。
  • 在Windows机器上,您可以使用RubyInstaller。



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

I downloaded the package from the mention site and changed the directory to the directory in which the setup resides and tried to run setup using the command,

setup.rb in command prompt.

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 do something wrong..

解决方案

I recommend you just use rubyinstaller

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

Ways of Installing Ruby

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

  • 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中安装Ruby Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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