Skip to content

Instantly share code, notes, and snippets.

@satzz
Created August 7, 2014 13:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satzz/261b4cba289a4b2ff3a9 to your computer and use it in GitHub Desktop.
Save satzz/261b4cba289a4b2ff3a9 to your computer and use it in GitHub Desktop.
"mkmf.rb can't find header files for ruby"の対応 ref: http://qiita.com/satzz@github/items/0361a7093a57b459e15b
$ gem install bson_ext -v '1.10.2'
Building native extensions. This could take a while...
ERROR: Error installing bson_ext:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.0 extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h
Gem files will remain installed in /home/ec2-user/.gem/ruby/2.0/gems/bson_ext-1.10.2 for inspection.
Results logged to /home/ec2-user/.gem/ruby/2.0/gems/bson_ext-1.10.2/ext/cbson/gem_make.out
$ less /home/ec2-user/.gem/ruby/2.0/gems/bson_ext-1.10.2/ext/cbson/gem_make.out
/usr/bin/ruby2.0 extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h
$ sudo yum -y install ruby-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment