.configure, make 後に sudo make install すると、以下のようなエラーを出力して終了する。
123456789101112131415161718192021
/home/foo/ruby-2.3.2/lib/rubygems/installer.rb:233:in `check_executable_overwrite': no implicit conversion of nil into String (TypeError)
from /home/foo/ruby-2.3.2/lib/rubygems/installer.rb:474:in `block in generate_bin'
from /home/foo/ruby-2.3.2/lib/rubygems/installer.rb:461:in `each'
from /home/foo/ruby-2.3.2/lib/rubygems/installer.rb:461:in `generate_bin'
from /home/foo/ruby-2.3.2/lib/rubygems/installer.rb:301:in `install'
from ./tool/rbinstall.rb:686:in `call'
from ./tool/rbinstall.rb:686:in `block in <class:Installer>'
from ./tool/rbinstall.rb:754:in `block (2 levels) in <main>'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:821:in `block in each_spec'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:743:in `block (2 levels) in each_gemspec'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:742:in `each'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:742:in `block in each_gemspec'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:741:in `each'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:741:in `each_gemspec'
from /home/foo/ruby-2.3.2/lib/rubygems/specification.rb:819:in `each_spec'
from ./tool/rbinstall.rb:751:in `block in <main>'
from ./tool/rbinstall.rb:801:in `block in <main>'
from ./tool/rbinstall.rb:798:in `each'
from ./tool/rbinstall.rb:798:in `<main>'
uncommon.mk:260: recipe for target 'do-install-all' failed
make: *** [do-install-all] Error 1
defcheck_executable_overwritefilename# :nodoc:returnif@forcegenerated_bin=File.join@bin_dir,formatted_program_filename(filename)returnunlessFile.exist?generated_binruby_executable=falseexisting=nilopengenerated_bin,'rb'do|io|nextunlessio.gets=~/^#!/# shebangio.gets# blankline# TODO detect a specially formatted comment instead of trying# to run a regexp against Ruby code.nextunlessio.gets=~/This file was generated by RubyGems/ruby_executable=trueexisting=io.read.slice(%r{ ^( gem \s | load \s Gem\.bin_path\( ) (['"])(.*?)(\2), }x,3)endreturnifspec.name==existing# somebody has written to RubyGems' directory, overwrite, too badreturnifGem.default_bindir!=@bin_dirandnotruby_executablequestion="#{spec.name}'s executable \"#{filename}\" conflicts with ".dupifruby_executablethenquestion<<existingreturnifask_yes_no"#{question}\nOverwrite the executable?",falseconflict="installed executable from #{existing}"elsequestion<<generated_binreturnifask_yes_no"#{question}\nOverwrite the executable?",falseconflict=generated_binendraiseGem::InstallError,"\"#{filename}\" from #{spec.name} conflicts with #{conflict}"end