Fail when install Ruby on Rails -


i use command install rails.

 sudo gem install rails -v 

then got error message. no ideas reason...

[root@li608-165 ~]# sudo gem install rails -v head https://api.rubygems.org/api/v1/dependencies 200 ok https://api.rubygems.org/api/v1/dependencies?gems=rails 200 ok https://api.rubygems.org/api/v1/dependencies?gems=actionmailer,actionpack,actionview,activemodel,activerecord,a                                                     ctivesupport,bundler,railties,sprockets-rails 200 ok https://api.rubygems.org/api/v1/dependencies?gems=arel,builder,erubis,i18n,json,mail,minitest,rack,rack-test,ra                                                     ke,sprockets,thor,thread_safe,tzinfo 200 ok https://api.rubygems.org/api/v1/dependencies?gems=hike,mime-types,multi_json,tilt,treetop 200 ok https://api.rubygems.org/api/v1/dependencies?gems=polyglot,polyglot 200 ok /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/.gitignore /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/.travis.yml /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/changes /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/copying /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/copying-json-jruby /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/gpl /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/gemfile /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/readme-json-jruby.markdown /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/readme.rdoc /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/rakefile /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/todo /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/version /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/data/example.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/data/index.html /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/data/prototype.js /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/diagrams/.keep /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/fbuffer/fbuffer.h /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/depend /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/extconf.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/generator.c /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/generator.h /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/parser/depend /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/parser/extconf.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/parser/parser.c /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/parser/parser.h /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/parser/parser.rl /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/install.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/bytelisttranscoder.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/generator.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/generatormethods.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/generatorservice.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/generatorstate.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/optionsreader.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/parser.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/parser.rl /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/parserservice.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/runtimeinfo.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/stringdecoder.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/stringencoder.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/java/src/json/ext/utils.java /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/json-java.gemspec /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/json.gemspec /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/json_pure.gemspec /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/bigdecimal.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/complex.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/core.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/date.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/date_time.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/exception.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/ostruct.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/range.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/rational.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/regexp.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/struct.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/symbol.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/add/time.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/common.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/ext.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/ext/.keep /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/generic_object.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/pure.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/pure/generator.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/pure/parser.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/lib/json/version.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail1.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail10.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail11.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail12.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail13.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail14.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail18.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail19.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail2.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail20.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail21.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail22.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail23.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail24.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail25.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail27.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail28.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail3.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail4.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail5.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail6.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail7.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail8.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/fail9.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass1.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass15.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass16.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass17.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass2.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass26.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/fixtures/pass3.json /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/setup_variant.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_addition.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_encoding.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_fixtures.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_generate.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_generic_object.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_string_matching.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_unicode.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tools/fuzz.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tools/server.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_addition.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_encoding.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_fixtures.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_generate.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_generic_object.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_string_matching.rb /usr/lib64/ruby/gems/1.8/gems/json-1.8.1/tests/test_json_unicode.rb building native extensions.  take while... /usr/bin/ruby extconf.rb mkmf.rb can't find header files ruby @ /usr/lib/ruby/ruby.h error:  error installing rails:         error: failed build gem native extension.      building has failed. see above output more information on failure. extconf failed, exit code 1  gem files remain installed in /usr/lib64/ruby/gems/1.8/gems/json-1.8.1 inspection. results logged /usr/lib64/ruby/gems/1.8/extensions/x86_64-linux/1.8/json-1.8.1/gem_make.out 

system: centos 6.5 ruby: 1.8.7

look piece of log

can't find header files ruby @ /usr/lib/ruby/ruby.h

this mean have not ruby-devel install ruby-devel on centos:

sudo yum install ruby-devel 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -