rubyコンパイル時にエラー
ruby2.2.1のmake install時に下記のようなエラーが出た
installing default gems: /usr/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications) bigdecimal 1.2.6 io-console 0.4.3 json 1.8.1 psych 2.0.8 rake 10.4.2 rdoc 4.2.0 ./tool/rbinstall.rb:714:in `rescue in block in': uninitialized constant LoadErroe (NameError) from ./tool/rbinstall.rb:712:in `block in ' from ./tool/rbinstall.rb:757:in `call' from ./tool/rbinstall.rb:757:in `block in ' from ./tool/rbinstall.rb:754:in `each' from ./tool/rbinstall.rb:754:in ` ' make: *** [do-install-all] Error 1
LoadErroeだと??
712行目を見てみる
vi ./tool/rbinstall.rb
install?(:ext, :comm, :gem) do begin require "zlib" rescue LoadErroe end
タイポかよ。。
rescue LoadErroe
rescue LoadError
に書き換えて再度make install
installing default gems: /usr/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications) bigdecimal 1.2.6 io-console 0.4.3 json 1.8.1 psych 2.0.8 rake 10.4.2 rdoc 4.2.0 skip installing bundle gems because of lacking zlib installing rdoc: /usr/share/ri/2.2.0/system installing capi-docs: /usr/share/doc/ruby
うまくいきました