我可以在Ubuntu上安装apt-get gem吗? [英] Can I install gems with apt-get on Ubuntu?

查看:399
本文介绍了我可以在Ubuntu上安装apt-get gem吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ruby的新手,刚入门。Ruby教程说我应该从这里获得包装系统: http://rubyforge.org/frs/?group_id=126



我在Ubuntu Linux上。该页面有一个.tar和一个.gem选项供下载。我应该下载哪个?



另外,gem是否类似于Java jar?为什么我需要宝石包装系统,如果我可以在需要的时候一个一个的下载宝石? 解决方案首先,下载* .tar文件,解开这个文件,然后进入你的控制台中的rubygems目录,并输入

  ruby​​ setup.rb 

就是这样:)


I am new to Ruby and just diving in. The Ruby tutorial says I should get the packaging system from here: http://rubyforge.org/frs/?group_id=126

I am on Ubuntu Linux. The page has a .tar and a .gem option for downloading. Which should I download?

Also, are gems exactly analogous to Java jars? And why do I need the gem packaging system if I can just download gems one by one as they are needed?

解决方案

First, download *.tar file, unpack this file, then go to rubygems directory in your console, and type

ruby setup.rb

That's it :)

这篇关于我可以在Ubuntu上安装apt-get gem吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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