Guest User

Untitled

a guest
Aug 12th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. sudo gem install rails -- --use-system-libraries
  2. [sudo] password for arrow:
  3. WARNING: You don't have /root/.gem/ruby/2.4.0/bin in your PATH,
  4. gem executables will not run.
  5. Building native extensions with: '--use-system-libraries'
  6. This could take a while...
  7. ERROR: Error installing rails:
  8. ERROR: Failed to build gem native extension.
  9.  
  10. current directory: /root/.gem/ruby/2.4.0/gems/nokogiri-1.8.0/ext/nokogiri
  11. /usr/bin/ruby -r ./siteconf20170812-7133-1re8y2o.rb extconf.rb --use-system-libraries
  12. checking if the C compiler accepts ... *** extconf.rb failed ***
  13. Could not create Makefile due to some reason, probably lack of necessary
  14. libraries and/or headers. Check the mkmf.log file for more details. You may
  15. need configuration options.
  16.  
  17. Provided configuration options:
  18. --with-opt-dir
  19. --without-opt-dir
  20. --with-opt-include
  21. --without-opt-include=${opt-dir}/include
  22. --with-opt-lib
  23. --without-opt-lib=${opt-dir}/lib
  24. --with-make-prog
  25. --without-make-prog
  26. --srcdir=.
  27. --curdir
  28. --ruby=/usr/bin/$(RUBY_BASE_NAME)
  29. --help
  30. --clean
  31. /usr/lib/ruby/2.4.0/mkmf.rb:457:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  32. You have to install development tools first.
  33. from /usr/lib/ruby/2.4.0/mkmf.rb:572:in `block in try_compile'
  34. from /usr/lib/ruby/2.4.0/mkmf.rb:523:in `with_werror'
  35. from /usr/lib/ruby/2.4.0/mkmf.rb:572:in `try_compile'
  36. from extconf.rb:138:in `nokogiri_try_compile'
  37. from extconf.rb:162:in `block in add_cflags'
  38. from /usr/lib/ruby/2.4.0/mkmf.rb:630:in `with_cflags'
  39. from extconf.rb:161:in `add_cflags'
  40. from extconf.rb:407:in `<main>'
  41.  
  42. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  43.  
  44. /root/.gem/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.8.0/mkmf.log
  45.  
  46. extconf failed, exit code 1
  47.  
  48. Gem files will remain installed in /root/.gem/ruby/2.4.0/gems/nokogiri-1.8.0 for inspection.
  49. Results logged to /root/.gem/ruby/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.8.0/gem_make.out
Add Comment
Please, Sign In to add comment