ruby - Ubuntu 14.04 Rails missing file -
when installing rails, then, write:
rails -v
and output:
/home/toshiba/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- rails/cli (loaderror) /home/toshiba/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' /usr/bin/rails:7:in `<main>'
everyone know how it?
i used tutorial: http://installfest.railsbridge.org/
and yes, run:
gem install rails
i noticed when run install rails thing pop up
building native extensions. take while... error: error installing rails: error: failed build gem native extension. /home/toshiba/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150816-3818-sm5w21.rb extconf.rb checking if c compiler accepts -ggdb3 -o0 -std=c99 -wall -werror... yes building nokogiri using packaged libraries. checking gzdopen() in -lz... no zlib missing; necessary building libxml2 *** 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/toshiba/.rvm/rubies/ruby-2.2.1/bin/$(ruby_base_name) --help --clean --use-system-libraries --enable-static --disable-static --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --enable-cross-build --disable-cross-build extconf failed, exit code 1 gem files remain installed in /home/toshiba/.rvm/gems/ruby-2.2.1/gems/nokogiri-1.6.6.2 inspection. results logged /home/toshiba/.rvm/gems/ruby-2.2.1/extensions/x86_64-linux/2.2.0/nokogiri-1.6.6.2/gem_make.out
it seems bad
i've fixed problem by
sudo apt-get install zlib1g-dev
Comments
Post a Comment