ruby - How can I install Rails on Ubuntu 14.04? -


i'm newbie ubuntu. chromebook pixel ls(2015)

ubuntu 14.04 amd64 crouton.unity

and installed rvm 1.26.11 & ruby 2.3.0p0

how can install rails??

i tried things. don't have knowledge linux...

(trusty)snowcat@localhost:~$ gem install rails --version 4.2.5 --no-ri --no-rdocfetching: rack-1.6.4.gem (100%) installed rack-1.6.4 fetching: concurrent-ruby-1.0.0.gem (100%) installed concurrent-ruby-1.0.0 fetching: sprockets-3.5.2.gem (100%) installed sprockets-3.5.2 fetching: thread_safe-0.3.5.gem (100%) installed thread_safe-0.3.5 fetching: tzinfo-1.2.2.gem (100%) installed tzinfo-1.2.2 fetching: i18n-0.7.0.gem (100%) installed i18n-0.7.0 fetching: activesupport-4.2.5.gem (100%) installed activesupport-4.2.5 fetching: mini_portile2-2.0.0.gem (100%) installed mini_portile2-2.0.0 fetching: nokogiri-1.6.7.1.gem (100%) building native extensions.  take while... error:  error installing rails:     error: failed build gem native extension.      current directory: /home/snowcat/.rvm/gems/ruby-2.3.0/gems/nokogiri-1.6.7.1/ext/nokogiri /home/snowcat/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160108-3517-11wk1wh.rb extconf.rb checking if c compiler accepts ... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  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/snowcat/.rvm/rubies/ruby-2.3.0/bin/$(ruby_base_name)     --help     --clean /home/snowcat/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first.     /home/snowcat/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:571:in `block in try_compile'     /home/snowcat/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:522:in `with_werror'     /home/snowcat/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:571:in `try_compile'     extconf.rb:80:in `nokogiri_try_compile'     extconf.rb:87:in `block in add_cflags'     /home/snowcat/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:629:in `with_cflags'     extconf.rb:86:in `add_cflags'     extconf.rb:336:in `<main>'  see why extension failed compile, please check mkmf.log can found here:    /home/snowcat/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.7.1/mkmf.log  extconf failed, exit code 1  gem files remain installed in /home/snowcat/.rvm/gems/ruby-2.3.0/gems/nokogiri-1.6.7.1 inspection. results logged /home/snowcat/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.7.1/gem_make.out 

nokogiri wants built c extension, meaning need build tools c language. try

sudo apt-get install build-essential 

and continue installing rails.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -