linux怎么安装gem命令,Linux ubuntu 安装gem

发表于 2013-05-28 08:45:10 by 月小升

想起了

wget -c http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz

tar xzcf rubygems-1.8.24.tgz

cd rubygems-1.8.24

ruby setup.rb

执行gem

老提示

程序 ‘gem’ 已包含在以下软件包中:

* rubygems1.8

* rubygems1.9

试试:apt-get install

-bash: gem:找不到命令

后来发现安装好的gem应该用gem1.8来执行

gem1.8

RubyGems is a sophisticated package manager for Ruby. This is a

basic help message containing pointers to more information.

Usage:

gem -h/–help

gem -v/–version

gem command [arguments…] [options…]

Examples:

gem install rake

gem list –local

gem build package.gemspec

gem help install

Further help:

gem help commands list all ‘gem’ commands

gem help examples show some examples of usage

gem help platforms show information about platforms

gem help show help on COMMAND

(e.g. ‘gem help install’)

gem server present a web page at

http://localhost:8808/

with info about installed gems

Further information:

http://rubygems.rubyforge.org

还有一种办法是直接安装ruby

apt-get install rubygems-1.9.1

就好了。

This entry was posted in Linux and tagged gem, Linux命令, Ubuntu. Bookmark the permalink.

月小升QQ 2651044202, 技术交流QQ群 178491360

首发地址:月小升博客 – https://java-er.com/blog/linux-ubuntu-gem/

无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值