LoginSignup
27
26

More than 5 years have passed since last update.

Ruby2.2.0にupdateしてbundle installしたらAn error occurred while installing eventmachine (1.0.3)とか言われた

Last updated at Posted at 2015-01-15

数分ハマったのでメモ。

ruby2.2.0をインストールして、私のrailsのリポジトリ内にある.ruby-bersion2.2.0と記載し、bundle installしたら

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

と言われたので、素直に

gem install eventmachine -v '1.0.3'

をしたんですけど

ERROR:  Error installing eventmachine:
    ERROR: Failed to build gem native extension.

という感じでやっぱりエラーになりました。

ふと思い立ちrubygems.orgのeventmachineのページを見てみたら、2014年12月に1.0.4にupdateされていました。

あれ、もしかしてと思い、

bundle update

してみたらすんなり終了。

どうやらeventmachine1.0.3はruby2.2.0に対応してなかっただけのようです。

「そんなもんここみたらわかんだろ!」ってものがありましたら教えて下さい。

27
26
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
26