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

Greg Hauptmann greg.hauptmann.ruby at gmail.com
Fri Feb 6 16:49:58 EST 2009


PS.  I did find the syck.so...what does this imply?

[root at home local]# find /usr/local -name syck.so
/usr/local/lib/ruby/1.8/i686-linux/syck.so

[root at home local]# ls -l /usr/local/lib/ruby/1.8/i686-linux/syck.so
-rwxr-xr-x  1 root root 271368 Feb  7 06:18
/usr/local/lib/ruby/1.8/i686-linux/syck.so




2009/2/7 Greg Hauptmann <greg.hauptmann.ruby at gmail.com>:
> I did see these warnings in the Ruby make - could this be the issue?
>
> root at home ruby-1.8.7-p72]# make
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c array.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c bignum.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c class.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c compar.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c dir.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c dln.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c enum.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c enumerator.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c error.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c eval.c
> eval.c: In function `rb_eval_string_wrap':
> eval.c:1731: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_eval_cmd':
> eval.c:1872: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `call_trace_func':
> eval.c:2723: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_raise_jump':
> eval.c:4752: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `method_missing':
> eval.c:5707: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_call0':
> eval.c:5870: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_f_eval':
> eval.c:6663: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `exec_under':
> eval.c:6687: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_load':
> eval.c:7003: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `call_end_proc':
> eval.c:8016: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `rb_f_END':
> eval.c:8029: warning: assignment discards qualifiers from pointer target type
> eval.c: In function `mproc':
> eval.c:9805: warning: assignment discards qualifiers from pointer target type
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c file.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c gc.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c hash.c
> gcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c inits.c
>
>
> 2009/2/7 Luis Lavena <luislavena at gmail.com>:
>> 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
>>
>> HTH,
>> --
>> Luis Lavena
>> AREA 17
>> -
>> 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
>> _______________________________________________
>> Rubygems-developers mailing list
>> Rubygems-developers at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rubygems-developers
>>
>
>
>
> --
> Greg
> http://blog.gregnet.org/
>



-- 
Greg
http://blog.gregnet.org/


More information about the Rubygems-developers mailing list