ホーム DoRuby mongrel起動エラー ~ no such file to load — openssl (RuntimeError)

mongrel起動エラー ~ no such file to load — openssl (RuntimeError)

この記事はアピリッツの技術ブログ「DoRuby」から移行した記事です。情報が古い可能性がありますのでご注意ください。

こんにちは、oneafter999です。

先日、CentOS5.0にmongrelをインストールし、起動しようとした際に発生したエラーの対処法です。
gemでmongrelをインストール後、mongrelを起動しようとしました。 すると、

no such file to load — openssl (RuntimeError)のエラーが・・・orz

調べてみると、どうやらopenssl-devel をインストールする前にRuby を入れると起動しないらしいのです。
なので、opensslをインストールし、その後Rubyを再インストールしました。

opensslインストール

cd /home/example/src/ruby-1.8.6-p114/ext/openssl/ ruby extconf.rb make make install
Ruby再インストール

cd /home/example/src/ruby-1.8.6-p114/ make clean ./configure make make install
これでmongrelが起動するようになりました。
Ruby関連のインストール順番には要注意です。

記事を共有

最近人気な記事