From: Joe Van Dyk Date: 2005-10-14T11:03:13+09:00 Subject: Re: Problem with IRB and some sample code... On 10/13/05, Unnsse Khan wrote: > Ezra, > > I followed your instructions, word for word... > > 2 things: > > 1. The IRB tab completion still isn't working (maybe its not meant to > be on OS X) > > 2. When I tried invoking gem, this is what happened: > > Last login: Thu Oct 13 16:33:54 on ttyp1 > Welcome to Darwin! > Raven:~ untz$ gem > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__': No such file to load -- syck (LoadError) > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require' > from /usr/lib/ruby/1.8/yaml/syck.rb:5 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require__' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require' > from /usr/lib/ruby/1.8/yaml.rb:9 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require__' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require__' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require__' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 21:in `require' > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in > `manage_gems' > from /usr/bin/gem:4 > Raven:~ untz$ > > The IRB tab completion was a nice feature that I am missing out on, > but what's sad is that a crucial tool such as RubyGems is broken... > > Thanks for your advice... Too bad, that I have this bad luck. I > really can't believe that no one else knows the solution to this > problem... Well, I guess I'll continue Java development, instead of > learning this language which supposedly has a "great community"... Haven't followed this thread, but Apple has a broken Ruby. Get the Ruby source, compile it yourself, install it into /usr/local, and be happy with Ruby on OS X. tar zxf ruby-1.8.2.tar.gz cd ruby-1.8.2 ./configure --prefix=/usr/local make sudo make install And adjust your path so that /usr/local/bin is before /usr/bin.