先日、入れたFedoraのRailsですがWebrickが起動できませんでした。症状としては、下記の通り。
# script/server => Booting WEBrick... /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:259:in `require_frameworks': no such file to load -- openssl.so (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:133:in `process' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run' from /vol/lighttpd/Buzz/config/environment.rb:13 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick.rb:59 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3
# cd ruby-1.8.7-p72/ext/openssl/ # ruby extconf.rb === OpenSSL for Ruby configurator === === Checking for system dependent stuff... === checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for assert.h... yes === Checking for required stuff... === checking for openssl/ssl.h... no === Checking for required stuff failed. === Makefile wasn't created. Fix the errors above. # echo $? 1
ヘッダーがない模様。ヘッダーが無いんだろうなぁと思いつつ、とりあえず検索。(笑)同じ事で詰まっている人がいました。
ruby-openssl のインスコ問題は1行でイナフだった
お陰でこちらは2分で解決できました。ありがとうございます。
# yum install openssl-devel # cd /usr/local/src/ruby-1.8.7-p72 # make clean # ./configure --prefix=/usr # make # checkinstall --fstrans=no
yumからインストールした後に、rubyをビルドし直します。出来たrpmを入れたらおっけいです。