我可以在Ubuntu上安装apt-get gem吗? [英] Can I install gems with apt-get on Ubuntu?
问题描述
我是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屋!