From: Alex Maccaw Date: 2009-08-13T07:43:58+09:00 Subject: Re: Ruby 1.9 evaled from C doesn't load libraries properly Eric Hodel wrote: > On Aug 10, 2009, at 14:52, Alex Maccaw wrote: >> rb_eval_string_protect(code, &error); >> >> >> So, this can parse Ruby fine, the only issue is when I require the >> mutex >> lib (needed by Rubygems). > > RubyGems requires thread by itself, why are you doing it? Why not > require 'rubygems'? When I require 'rubygems' I get that error - I traced it back to the Mutex lib in the thread lib. In other words, rubygems won't work. Also, peculiarly, if I stub out the schedule method on Mutex like this: require 'thread' class ::Mutex def synchronize yield end end Then rubygems seems to load fine, but any other gems, such as activesupport won't load through rubygems. It's really odd... -- Posted via http://www.ruby-forum.com/.