install ruby19 and rubygems on Gentoo

本文介绍了如何在Gentoo Linux上安装Ruby 1.9.2版本,并解决了大部分Ruby应用仍基于Ruby 1.8的问题。通过配置Portage设置并手动指定Ruby 19为目标版本,同时指定了特定版本的RubyGems以确保兼容性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Ruby1.9.2 have released,but it's annoying on Gentoo,cause most ruby apps are based on ruby 1.8.
First ,installing ruby19 is easy,add some options in portage configure files.
[quote]RUBY_TARGETS="ruby19"[/quote]in /etc/make.conf
[quote]echo "dev-lang/ruby" >>/etc/portage/package.keywords[/quote],cause ruby19 is masked in Gentoo(from this,the ruby are not supported as good as python:)

Then the rubygems,it's really hard,from mine,rubygems 1.3.7 just support ruby18,jruby.and i found out that the rubygem 1.3.7-r4 support ruby19,so just do like this:
[quote] emerge "=rubygems-1.3.7-r4"[/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值