Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xubuntu @ xubuntu /opt/metasploit
- └─ $ ▶ sudo gem install nokogiri
- Building native extensions. This could take a while...
- ERROR: Error installing nokogiri:
- ERROR: Failed to build gem native extension.
- current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
- /usr/bin/ruby2.5 -r ./siteconf20190827-10051-1p7ixd.rb extconf.rb
- checking if the C compiler accepts ... *** extconf.rb failed ***
- Could not create Makefile due to some reason, probably lack of necessary
- libraries and/or headers. Check the mkmf.log file for more details. You 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=/usr/bin/$(RUBY_BASE_NAME)2.5
- --help
- --clean
- /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
- You have to install development tools first.
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
- from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
- from extconf.rb:138:in `nokogiri_try_compile'
- from extconf.rb:162:in `block in add_cflags'
- from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
- from extconf.rb:161:in `add_cflags'
- from extconf.rb:416:in `<main>'
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
- /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
- extconf failed, exit code 1
- Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.4 for inspection.
- Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
- xubuntu @ xubuntu /opt/metasploit
- └─ $ ▶ cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
- current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
- /usr/bin/ruby2.5 -r ./siteconf20190827-10051-1p7ixd.rb extconf.rb
- checking if the C compiler accepts ... *** extconf.rb failed ***
- Could not create Makefile due to some reason, probably lack of necessary
- libraries and/or headers. Check the mkmf.log file for more details. You 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=/usr/bin/$(RUBY_BASE_NAME)2.5
- --help
- --clean
- /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
- You have to install development tools first.
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
- from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
- from extconf.rb:138:in `nokogiri_try_compile'
- from extconf.rb:162:in `block in add_cflags'
- from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
- from extconf.rb:161:in `add_cflags'
- from extconf.rb:416:in `<main>'
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
- /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
- extconf failed, exit code 1
- xubuntu @ xubuntu /opt/metasploit
- └─ $ ▶ sudo bundle install
- Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break
- this application for all non-root users on this machine.
- 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`.
- Fetching gem metadata from https://rubygems.org/..............
- Using rake 12.3.3
- Using Ascii85 1.0.3
- Using concurrent-ruby 1.0.5
- Using i18n 0.9.5
- Using minitest 5.11.3
- Using thread_safe 0.3.6
- Using tzinfo 1.2.5
- Using activesupport 4.2.11.1
- Using builder 3.2.3
- Using erubis 2.7.0
- Using mini_portile2 2.4.0
- Fetching nokogiri 1.10.4
- Installing nokogiri 1.10.4 with native extensions
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
- current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
- /usr/bin/ruby2.5 -r ./siteconf20190827-10128-1nao7sr.rb extconf.rb
- checking if the C compiler accepts ... *** extconf.rb failed ***
- Could not create Makefile due to some reason, probably lack of necessary
- libraries and/or headers. Check the mkmf.log file for more details. You 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=/usr/bin/$(RUBY_BASE_NAME)2.5
- --help
- --clean
- /usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
- You have to install development tools first.
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
- from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
- from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
- from extconf.rb:138:in `nokogiri_try_compile'
- from extconf.rb:162:in `block in add_cflags'
- from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
- from extconf.rb:161:in `add_cflags'
- from extconf.rb:416:in `<main>'
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
- /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
- extconf failed, exit code 1
- Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.4 for inspection.
- Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out
- An error occurred while installing nokogiri (1.10.4), and Bundler cannot continue.
- Make sure that `gem install nokogiri -v '1.10.4'` succeeds before bundling.
- In Gemfile:
- factory_bot_rails was resolved to 5.0.2, which depends on
- railties was resolved to 4.2.11.1, which depends on
- actionpack was resolved to 4.2.11.1, which depends on
- actionview was resolved to 4.2.11.1, which depends on
- rails-dom-testing was resolved to 1.0.9, which depends on
- nokogiri
- xubuntu @ xubuntu /opt/metasploit
- └─ $ ▶ cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log
- "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 "
- checked program was:
- /* begin */
- 1: #include "ruby.h"
- 2:
- 3: int main(int argc, char **argv)
- 4: {
- 5: return 0;
- 6: }
- /* end */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement