Poblem with RubyGems after upgrade to 1.8.7p334

J

James Byrne

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:in
`searcher'
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:in
`load_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:in `new'
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:in `path'
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:in
`from_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:in
`init_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:in `new'
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:in
`synchronize'
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:in
`find_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:in `require'
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:in `require'
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?
 
R

Ryan Davis

./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:in `require'
from ./lib/rubygems.rb:29
from setup.rb:24:in `require'
from setup.rb:24
=20
Searching for tsort.rb finds it in the expected (for me) place:
=20
$ find / -name tsort.rb
/usr/lib/ruby/1.8/tsort.rb
=20
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top