sawa sawa - 7 months ago 299
Ruby Question

Cannot update to Ruby 2.3.1

I am trying to update to Ruby 2.3.1. I downloaded from here, and did:

./configure
make
sudo make install


Then I got:

/home/sawa/Downloads/ruby-2.3.1/lib/rubygems/installer.rb:227:in `check_executable_overwrite': no implicit conversion of nil into String (TypeError)


How can I fix this and upgrade Ruby?

It turns out that Ruby is installed. But Ever since this happened, I have problem updating the gems. I get:

sudo gem update --system
Updating rubygems-update
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String


How can I fix that?

Answer

This seems to be a bug in bundled version of rubygems, as existing variable really can be nil, try patching that line like in newer rubygems:

question << (existing || 'an unknown executable')
Comments