The problem is this. Established Rails version 3.2.11. Installed Rubymine 5.0 When I try to create a project from scratch. In the Rails application setup window, my newly installed Rails 3.2.11 is not displayed in the selection box. But, then I try to install Rails through Rubymine, where she offers me to install. I click to install. And an error comes out. Installed under this scheme: Tech. data: ubuntu 12.10, ruby ​​1.9.3, rails 3.2.11, nodejs 0.6.19,

The following gems were not installed: rails (3.2.11): Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require 'from extconf.rb: 1: in `<main>' Gem files will remain installed in require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in gems / json-1.7.6 for inspection. Results logged to /home/ruzel/.gem/ruby/1.9.1/gems/json-1.7.6/ext/json/ext/generator/gem_make.out

    1 answer 1

    RM> Preferences> Ruby SDK and Gems> Ruby interpreter (select if the Ruby version is not worth it)

    ps: Use RVM or rbenv.

    • I installed Rails via RVM - Ruzel
    • Ruby do you mean? You put the rails through gems (:: Is the rubimine repaired? Everything is OK? - Vetal4eg