Poblem with RubyGems after upgrade to 1.8.7p334

I just tried to install 1.8.7.p334 on a CentOS-5 host that previously
ran 1.8.7p302. I downloaded and built ruby from source and then used
checkinstall to build a local rpm package from which I installed the VM
using rpm -U. All these steps completed without error:

$ ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]

However, when I attempt to run gem I get this error:

$ gem
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:840:in synchronize': thread 0xb7fba1b4 tried to join itself (ThreadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:840:insearcher’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in
require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:220:inload_file’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:168:in
initialize' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:385:innew’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:385:in
configuration' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:635:inpath’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:68:in
installed_spec_directories' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:58:infrom_installed_gems’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:883:in
source_index' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:81:ininit_gemspecs’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:13:in
initialize' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:841:innew’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:841:in
searcher' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:840:insynchronize’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:840:in
searcher' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:479:infind_files’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:983:in
load_plugins' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1139 from /usr/local/bin/gem:8:inrequire’
from /usr/local/bin/gem:8

I then tried to update RubyGems by downloading and installing from
source. However, when I attempt to run ruby setup.rb I get this error:

./lib/rubygems/dependency_list.rb:7:in require': no such file to load -- tsort (LoadError) from ./lib/rubygems/dependency_list.rb:7 from ./lib/rubygems.rb:29:inrequire’
from ./lib/rubygems.rb:29
from setup.rb:24:in `require’
from setup.rb:24

Searching for tsort.rb finds it in the expected (for me) place:

$ find / -name tsort.rb
/usr/lib/ruby/1.8/tsort.rb

the question I have is: What have I borked and how do I fix it?

On Mar 10, 2011, at 08:32 , James B. wrote:

$ find / -name tsort.rb
/usr/lib/ruby/1.8/tsort.rb

the question I have is: What have I borked and how do I fix it?

Wow… maybe you’re not using the ruby you think you’re using? or maybe
you have a RUBYOPT defined that is really messing stuff up, tho I have
no idea how you’d do that at this point.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs