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

Heroku deploy #8

Closed
v3rmin opened this issue Jun 12, 2019 · 1 comment
Closed

Heroku deploy #8

v3rmin opened this issue Jun 12, 2019 · 1 comment

Comments

@v3rmin
Copy link

v3rmin commented Jun 12, 2019

Has anyone successfully installed this gem on Heroku?

By using this Gemfile:

source 'https://rubygems.org'
ruby '2.5.1'
gem 'ruby-jq', '0.1.8'

gives the following error:

remote:        Installing ruby-jq 0.1.8 with native extensions
remote:        Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:        
remote:        current directory:
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/ruby-2.5.1/bin/ruby -r
remote:        ./siteconf20190612-486-ddne65.rb extconf.rb
remote:        Buildling jq using packaged libraries.
remote: Downloading jq-1.6.tar.gz
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz 
remote: Downloading jq-1.6.tar.gz
remote:        Extracting jq-1.6.tar.gz into tmp/x86_64-linux-gnu/ports/jq/1.6... OK
remote:        Running 'autoreconf' for jq 1.6... OK
remote:        Running 'configure' for jq 1.6... OK
remote:        Running 'compile' for jq 1.6... ERROR, review
remote:        '/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext/tmp/x86_64-linux-gnu/ports/jq/1.6/compile.log'
remote:        to see what happened. Last lines are:
remote:        ========================================================================
remote:          GEN      src/builtin.inc
remote:        fatal: not a git repository (or any parent up to mount point /)
remote:        Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
remote:          GEN      src/version.h
remote:        fatal: not a git repository (or any parent up to mount point /)
remote:        Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
remote:        make  all-recursive
remote:        make[1]: Entering directory
remote:        '/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext/tmp/x86_64-linux-gnu/ports/jq/1.6/jq-jq-1.6'
remote:        Making all in modules/oniguruma
remote:        make[2]: Entering directory
remote:        '/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext/tmp/x86_64-linux-gnu/ports/jq/1.6/jq-jq-1.6/modules/oniguruma'
remote:        make[2]: *** No rule to make target 'all'.  Stop.
remote:        make[2]: Leaving directory
remote:        '/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext/tmp/x86_64-linux-gnu/ports/jq/1.6/jq-jq-1.6/modules/oniguruma'
remote:        Makefile:1086: recipe for target 'all-recursive' failed
remote:        make[1]: *** [all-recursive] Error 1
remote:        make[1]: Leaving directory
remote:        '/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8/ext/tmp/x86_64-linux-gnu/ports/jq/1.6/jq-jq-1.6'
remote:        Makefile:763: recipe for target 'all' failed
remote:        make: *** [all] Error 2
remote:        ========================================================================
remote:        *** extconf.rb failed ***
remote:        Could not create Makefile due to some reason, probably lack of necessary
remote:        libraries and/or headers.  Check the mkmf.log file for more details.  You may
remote:        need configuration options.
remote:        
remote:        Provided configuration options:
remote:        	--with-opt-dir
remote:        	--without-opt-dir
remote:        	--with-opt-include
remote:        	--without-opt-include=${opt-dir}/include
remote:        	--with-opt-lib
remote:        	--without-opt-lib=${opt-dir}/lib
remote:        	--with-make-prog
remote:        	--without-make-prog
remote:        	--srcdir=.
remote:        	--curdir
remote:        --ruby=/tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/ruby-2.5.1/bin/$(RUBY_BASE_NAME)
remote:        	--use-system-libraries
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:402:in
remote:        `block in execute': Failed to complete compile task (RuntimeError)
remote:        from
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in
remote:        `chdir'
remote:        from
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in
remote:        `execute'
remote:        from
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:115:in
remote:        `compile'
remote:        from
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:154:in
remote:        `cook'
remote:        	from extconf.rb:25:in `<main>'
remote:        
remote:        extconf failed, exit code 1
remote:        
remote:        Gem files will remain installed in
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/gems/ruby-jq-0.1.8
remote:        for inspection.
remote:        Results logged to
remote:        /tmp/build_51f60a8fa8fbc737fef3a88df336683a/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ruby-jq-0.1.8/gem_make.out
remote:        
remote:        An error occurred while installing ruby-jq (0.1.8), and Bundler cannot continue.
remote:        Make sure that `gem install ruby-jq -v '0.1.8'` succeeds before bundling.
remote:        
remote:        In Gemfile:
remote:          ruby-jq
remote: 
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.

Is there a working buildpack for heroku out there? I tried the following without success:

@v3rmin
Copy link
Author

v3rmin commented Jun 17, 2019

I got it working with IDAGIO/heroku-buildpack-libjq

@v3rmin v3rmin closed this as completed Jun 17, 2019
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