Skip to content

Instantly share code, notes, and snippets.

@joaquin386
Created September 19, 2018 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquin386/37d02157a004191b63a7a8602ec756cf to your computer and use it in GitHub Desktop.
Save joaquin386/37d02157a004191b63a7a8602ec756cf to your computer and use it in GitHub Desktop.
# puppetserver gem install ruby-augeas
Warning: the JRUBY_JAR setting is no longer needed and will be ignored.
Building native extensions. This could take a while...
ERROR: Error installing ruby-augeas:
ERROR: Failed to build gem native extension.
current directory: /opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/ruby-augeas-0.5.0/ext/augeas
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java -cp :/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/data/puppetserver/jars/* org.jruby.Main -r ./siteconf20180919-4733-1tnfkxj.rb extconf.rb
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.
try_do at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/mkmf.rb:456
try_link0 at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/mkmf.rb:541
try_link at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/mkmf.rb:556
try_ldflags at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/mkmf.rb:657
pkg_config at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/mkmf.rb:1813
<main> at extconf.rb:26
*** 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=uri:classloader:/META-INF/jruby.home/bin/jruby
--with-augeas-config
--without-augeas-config
--with-pkg-config
--without-pkg-config
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/opt/puppetlabs/server/data/puppetserver/jruby-gems/extensions/universal-java-1.8/2.3.0/ruby-augeas-0.5.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /opt/puppetlabs/server/data/puppetserver/jruby-gems/extensions/universal-java-1.8/2.3.0/ruby-augeas-0.5.0/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment