Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. #1

Open
mhaberler opened this issue May 4, 2016 · 0 comments
Open

Comments

@mhaberler
Copy link

mhaberler commented May 4, 2016

Hi Marc,

very useful container! not yet for me though.. unfortunately the build fails here:

Installing minitest 5.8.4
Installing thread_safe 0.3.5
Installing addressable 2.4.0
Installing afm 0.2.2
Installing asciidoctor 1.5.4
Installing rjb 1.4.9 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rjb-1.4.9/ext
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160504-7-1mol5ia.rb extconf.rb
*** 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/local/rvm/rubies/ruby-2.3.0/bin/$(RUBY_BASE_NAME)
extconf.rb:53:in `<main>': JAVA_HOME is not set. (RuntimeError)

extconf failed, exit code 1
....
Installing temple 0.7.6
Using bundler 1.12.1
Installing tzinfo 1.2.2
Installing memoizable 0.4.2
Installing css_parser 1.4.1
Using jekyll-asciidoc 1.0.2.dev from https://github.com/asciidoctor/jekyll-asciidoc.git (at master@548426f)
An error occurred while installing rjb (1.4.9), and Bundler cannot continue.
Make sure that `gem install rjb -v '1.4.9'` succeeds before bundling.
The command '/bin/sh -c cd /root/ && bundle install' returned a non-zero code: 5

not sure how to proceed - JAVA_HOME unset?

this is the part of the build log which I could salvage: http://hastebin.com/pumemafiwu.vhdl
second run: http://hastebin.com/igusoyotum.coffee

$ docker version
Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:11:07 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:11:07 2016
 OS/Arch:      linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant