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

被折叠的 条评论
为什么被折叠?



