現在vagrantの中で、Railsのインフラと運用を学ぼうと、
GemfileにChefとbreakshelfを記述しbundle installしました。
しかし、
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/vagrant/.bundler/tmp/1615/gems/hitimes-1.2.4/ext/hitimes/c /usr/bin/ruby2.3 -r ./siteconf20160911-1615-1dbgdte.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /home/vagrant/.bundler/tmp/1615/gems/hitimes-1.2.4 for inspection. Results logged to /home/vagrant/.bundler/tmp/1615/extensions/x86_64-linux/2.3.0/hitimes-1.2.4/gem_make.out An error occurred while installing hitimes (1.2.4), and Bundler cannot continue. Make sure that `gem install hitimes -v '1.2.4'` succeeds before bundling.
というエラーが発生したため、gem install hitimes -v '1.2.4'をインストールを試みましたが、
Building native extensions. This could take a while... ERROR: Error installing hitimes: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/hitimes-1.2.4/ext/hitimes/c /usr/bin/ruby2.3 -r ./siteconf20160911-1704-18qmoqh.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.3.0/gems/hitimes-1.2.4 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/hitimes-1.2.4/gem_make.out
というエラーが発生してインストールできませんでした。
原因を探してみたのですが、
xcodeが原因などでUbuntuでの解決方法が見つかりません。
どうすればインストールできますでしょうか?
よろしくお願いします。
ちなみに、
rubyのバージョンは
ruby 2.3.1p112
です。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。