[Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError))

Luis Lavena luislavena at gmail.com
Fri Feb 6 16:27:29 EST 2009

On Fri, Feb 6, 2009 at 7:08 PM, Greg Hauptmann
<greg.hauptmann.ruby at gmail.com> wrote:
> Hi,
> I think I've upset my ruby/gems on my Redhat Linux box (I did an
> apt-get install ruby-libs).  So I've installed again Ruby from source
> (did get some warnings - see previous post), and then tried to install
> RubyGem however I get the following error.  Any ideas?  Anything else
> I can post to help?
> [root at home rubygems-1.3.1]# ruby ./setup.rb
> /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant
> YAML::Syck::DefaultLoader (NameError)
>        from ./lib/rubygems/config_file.rb:7:in `require'
>        from ./lib/rubygems/config_file.rb:7
>        from ./lib/rubygems.rb:882:in `require'
>        from ./lib/rubygems.rb:882
>        from ./setup.rb:22:in `require'
>        from ./setup.rb:22

Looks like Syck (the YAML parser bundled in Ruby) didn't compile properly.

Since you built from source, did you checked if syck extension got
compiled? search for syck.so

Luis Lavena
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

More information about the Rubygems-developers mailing list