Cannot install Rails
Hello
Upon starting a new RoR project, I chose to use RVM-ruby-2.2.3 (already installed to my machine)
However, if I chose to install the newest version of Rails (RubyMine's new project dialog proposes 4.2.4) the installation process fails with the following:
Following gems were not installed:
rails (4.2.4): Error installing rails:
ERROR: Failed to build gem native extension. /home/george/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20151013-5373-1iea1gm.rb extconf.rb checking if the C compiler accepts ... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/home/george/.rvm/rubies/ruby-2.2.3/bin/$(RUBY_BASE_NAME) --help --clean /home/george/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /home/george/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:571:in `block in try_compile' from /home/george/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:522:in `with_werror' from /home/george/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:571:in `try_compile' from extconf.rb:80:in `nokogiri_try_compile' from extconf.rb:87:in `block in add_cflags' from /home/george/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:619:in `with_cflags' from extconf.rb:86:in `add_cflags' from extconf.rb:337:in `<main>' extconf failed, exit code 1 Gem files will remain installed in /home/george/.rvm/gems/ruby-2.2.3@global/gems/nokogiri-1.6.6.2 for inspection. Results logged to /home/george/.rvm/gems/ruby-2.2.3@global/extensions/x86_64-linux/2.2.0/nokogiri-1.6.6.2/gem_make.out
could anybody help me installing rails 4.2.4?
Thanks in advance
George
RubyMine version: 7.1.4
OS: Linux Ubuntu 15.04 vivid 3.19.0-30-generic
请先登录再写评论。
After running
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool libgmp-dev
bundler works just fine, so I can install everything