3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

chef-rails-dev-boxで初めにbundle installしたらエラーがでた

Last updated at Posted at 2014-02-20

Vagrantでchef-rails-dev-boxを使ってみた。

chef-rails-dev-boxはrails-dev-boxのchefを使っているバージョン。

早速導入して、bundle installしたところ、下記のエラーが

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/local/rbenv/versions/2.0.0-p0/bin/ruby extconf.rb
checking for termios.h... yes
checking for cfmakeraw() in termios.h... yes
checking for sys/ioctl.h... yes
checking for rb_io_get_write_io() in ruby/io.h... yes
checking for dup3() in unistd.h... yes
creating Makefile

make
compiling console.c
linking shared-object io/console.so

make install
/usr/bin/install -c -m 0755 console.so /usr/local/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/io-console-0.3/./io
installing default console libraries
/usr/bin/install: accessing `/usr/local/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/io-console-0.3/./io/console': Not a directory
make: *** [/usr/local/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/io-console-0.3/./io/console/size.rb] Error 1


Gem files will remain installed in /usr/local/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/io-console-0.3 for inspection.
Results logged to /usr/local/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/io-console-0.3/./gem_make.out
An error occurred while installing io-console (0.3), and Bundler cannot continue.
Make sure that `gem install io-console -v '0.3'` succeeds before bundling.

どうやら、元から入っているruby-2.0.0-p0ではうまくいかないとか・・・

そこでrbenvで違うバージョンのrubyをインストール(筆者はruby-2.0.0-p247)した後にbundle installをすれば、エラーは消えました。

rails-dev-boxでも同じことが起こるんじゃないか?
わからないですが・・・

3
3
0

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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?