SHARE
TWEET

[bug] gem nokogiri

a guest Aug 27th, 2019 200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. xubuntu @ xubuntu  /opt/metasploit
  2. └─ $ ▶ sudo gem install nokogiri
  3. Building native extensions. This could take a while...
  4. ERROR:  Error installing nokogiri:
  5.     ERROR: Failed to build gem native extension.
  6.  
  7.     current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
  8. /usr/bin/ruby2.5 -r ./siteconf20190827-10051-1p7ixd.rb extconf.rb
  9. checking if the C compiler accepts ... *** extconf.rb failed ***
  10. Could not create Makefile due to some reason, probably lack of necessary
  11. libraries and/or headers.  Check the mkmf.log file for more details.  You may
  12. need configuration options.
  13.  
  14. Provided configuration options:
  15.     --with-opt-dir
  16.     --without-opt-dir
  17.     --with-opt-include
  18.     --without-opt-include=${opt-dir}/include
  19.     --with-opt-lib
  20.     --without-opt-lib=${opt-dir}/lib
  21.     --with-make-prog
  22.     --without-make-prog
  23.     --srcdir=.
  24.     --curdir
  25.     --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
  26.     --help
  27.     --clean
  28. /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  29. You have to install development tools first.
  30.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
  31.     from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
  32.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
  33.     from extconf.rb:138:in `nokogiri_try_compile'
  34.     from extconf.rb:162:in `block in add_cflags'
  35.     from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
  36.     from extconf.rb:161:in `add_cflags'
  37.     from extconf.rb:416:in `<main>'
  38.  
  39. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  40.  
  41.   /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
  42.  
  43. extconf failed, exit code 1
  44.  
  45. Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.4 for inspection.
  46. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
  47.  
  48.  
  49.  
  50. xubuntu @ xubuntu  /opt/metasploit
  51. └─ $ ▶ cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
  52. current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
  53. /usr/bin/ruby2.5 -r ./siteconf20190827-10051-1p7ixd.rb extconf.rb
  54. checking if the C compiler accepts ... *** extconf.rb failed ***
  55. Could not create Makefile due to some reason, probably lack of necessary
  56. libraries and/or headers.  Check the mkmf.log file for more details.  You may
  57. need configuration options.
  58.  
  59. Provided configuration options:
  60.     --with-opt-dir
  61.     --without-opt-dir
  62.     --with-opt-include
  63.     --without-opt-include=${opt-dir}/include
  64.     --with-opt-lib
  65.     --without-opt-lib=${opt-dir}/lib
  66.     --with-make-prog
  67.     --without-make-prog
  68.     --srcdir=.
  69.     --curdir
  70.     --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
  71.     --help
  72.     --clean
  73. /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  74. You have to install development tools first.
  75.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
  76.     from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
  77.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
  78.     from extconf.rb:138:in `nokogiri_try_compile'
  79.     from extconf.rb:162:in `block in add_cflags'
  80.     from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
  81.     from extconf.rb:161:in `add_cflags'
  82.     from extconf.rb:416:in `<main>'
  83.  
  84. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  85.  
  86.   /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
  87.  
  88. extconf failed, exit code 1
  89.  
  90. xubuntu @ xubuntu  /opt/metasploit
  91. └─ $ ▶ sudo bundle install
  92. Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break
  93. this application for all non-root users on this machine.
  94. Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
  95. Fetching gem metadata from https://rubygems.org/..............
  96. Using rake 12.3.3
  97. Using Ascii85 1.0.3
  98. Using concurrent-ruby 1.0.5
  99. Using i18n 0.9.5
  100. Using minitest 5.11.3
  101. Using thread_safe 0.3.6
  102. Using tzinfo 1.2.5
  103. Using activesupport 4.2.11.1
  104. Using builder 3.2.3
  105. Using erubis 2.7.0
  106. Using mini_portile2 2.4.0
  107. Fetching nokogiri 1.10.4
  108. Installing nokogiri 1.10.4 with native extensions
  109. Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  110.  
  111.     current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
  112. /usr/bin/ruby2.5 -r ./siteconf20190827-10128-1nao7sr.rb extconf.rb
  113. checking if the C compiler accepts ... *** extconf.rb failed ***
  114. Could not create Makefile due to some reason, probably lack of necessary
  115. libraries and/or headers.  Check the mkmf.log file for more details.  You may
  116. need configuration options.
  117.  
  118. Provided configuration options:
  119.     --with-opt-dir
  120.     --without-opt-dir
  121.     --with-opt-include
  122.     --without-opt-include=${opt-dir}/include
  123.     --with-opt-lib
  124.     --without-opt-lib=${opt-dir}/lib
  125.     --with-make-prog
  126.     --without-make-prog
  127.     --srcdir=.
  128.     --curdir
  129.     --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
  130.     --help
  131.     --clean
  132. /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  133. You have to install development tools first.
  134.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
  135.     from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
  136.     from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
  137.     from extconf.rb:138:in `nokogiri_try_compile'
  138.     from extconf.rb:162:in `block in add_cflags'
  139.     from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
  140.     from extconf.rb:161:in `add_cflags'
  141.     from extconf.rb:416:in `<main>'
  142.  
  143. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  144.  
  145.   /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
  146.  
  147. extconf failed, exit code 1
  148.  
  149. Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.4 for inspection.
  150. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
  151.  
  152. An error occurred while installing nokogiri (1.10.4), and Bundler cannot continue.
  153. Make sure that `gem install nokogiri -v '1.10.4'` succeeds before bundling.
  154.  
  155. In Gemfile:
  156.   factory_bot_rails was resolved to 5.0.2, which depends on
  157.     railties was resolved to 4.2.11.1, which depends on
  158.       actionpack was resolved to 4.2.11.1, which depends on
  159.         actionview was resolved to 4.2.11.1, which depends on
  160.           rails-dom-testing was resolved to 1.0.9, which depends on
  161.             nokogiri
  162.  
  163. xubuntu @ xubuntu  /opt/metasploit
  164. └─ $ ▶ cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
  165. "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-TdNoZ6/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
  166. checked program was:
  167. /* begin */
  168. 1: #include "ruby.h"
  169. 2:
  170. 3: int main(int argc, char **argv)
  171. 4: {
  172. 5:   return 0;
  173. 6: }
  174. /* end */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top