nagurigakinの日記

日常、技術系を。気合い入れると続かないのでゆるふわ。

bundle installするとAn error occurred while installing rjbのエラー。

$ bundle install --path vendor/bundler

したら

An error occurred while installing rjb (1.5.5), and Bundler cannot continue.
Make sure that `gem install rjb -v '1.5.5'` succeeds before bundling.

のエラーが出てしまいました。

エラー文の通り以下を実行すると。。

$ gem install rjb -v '1.5.5'

次はこのエラーが出ました。

ERROR:  Error installing rjb:
	ERROR: Failed to build gem native extension.
...
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

このエラー文をそのままググる

Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.

qiita.com
こんな記事を発見。

記事に記事の通りJDKをインストールし、再度bundle install

$ bundle install --path vendor/bundler

見事に成功しました。