I need to configure ruby in the timesys machine (powerpc linux), I have
done the cross compilation and got the Binaries for ruby 1.9.2po, And
the ruby is running, But the other ruby utilities(irb, gem etc) are not
showing up at all.
first of all: you need to require “rubygems”, not “rubygem”.
Also: rubygems is not a binary, it’s written in ruby. It’s not bundled
with ruby, you need to install it seperately. Download from http://rubygems.org/, then run “ruby setup.rb install” (probably as
root)
I’m not sure why irb is not there, it’s written in ruby as well but part
of the source distribution, so should be there. I don’t know though if
this changed in 1.9…
Ruby 1.9 has support for rubygems built-in. You do not need to first
require ‘rubygems’ in 1.9 before requiring a gem or using the gem
method to restrict the version of a gem. (However, including a require 'rubygems' in your 1.9 source will not cause a problem.)
-Rob
On Dec 22, 2010, at 9:16 AM, niklas | brueckenschlaeger wrote: