iron-io / dockers

Uber tiny Docker images for all the things.
http://www.iron.io
MIT License
1.59k stars 139 forks source link

gem install json-1.8.3 failed on ruby 2.2.0 #54

Closed ducle closed 8 years ago

ducle commented 8 years ago

`Fetching: json-1.8.3.gem (100%) Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.

/usr/bin/ruby -r ./siteconf20160623-7-1yb7ssr.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 /usr/lib/ruby/gems/2.2.0/gems/json-1.8.3 for inspection. Results logged to /usr/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out`

How can we fix this?

treeder commented 8 years ago

Are you using iron/ruby:dev to build?

ducle commented 8 years ago

no, I used iron/ruby. But I fixed it with

apk add gcc make libc-dev ruby-dev ruby-rdoc ruby-irb