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

extconf failed #1

Open
maia opened this issue Aug 28, 2018 · 0 comments
Open

extconf failed #1

maia opened this issue Aug 28, 2018 · 0 comments

Comments

@maia
Copy link

maia commented Aug 28, 2018

As mentioned here https://stackoverflow.com/questions/52057205/heroku-ruby-with-gsl-buildpack I'm trying to run a rails app with gsl on heroku. Unfortunately I'm failing to do so. What am I missing? Any help is highly appreciated.

$ heroku buildpacks:clear
$ heroku buildpacks:add git://github.com/gregory/heroku-gsl-buildpack.git#gsl-1.16
$ heroku buildpacks:add heroku/ruby
$ heroku config:set LD_LIBRARY_PATH=/app/vendor/gsl/lib

Both buildpacks show up properly:

$ heroku buildpacks
=== appname Buildpack URLs
1. git://github.com/gregory/heroku-gsl-buildpack.git#gsl-1.16
2. heroku/ruby

Unfortunately git push heroku master fails – and while I don't know how an install should look like, it feels like the gsl bindings are just downloaded and unpacked, but not built? See here:

$ git push heroku master
…
remote: Building source:
remote:
remote: -----> GSL 1.15 app detected
remote: -----> Installing GSL 1.16
remote: --2018-08-28 11:31:25--  https://github.com/gregory/heroku-gsl-buildpack/raw/gsl-1.16/gsl-1.16.tar.gz
…
remote: HTTP request sent, awaiting response... 200 OK
…
remote: 2018-08-28 11:31:26 (74.5 MB/s) - ‘gsl-1.16.tar.gz’ saved [8214058/8214058]
remote:
remote: ./
remote: ./include/
remote: ./include/gsl/
…
remote: ./lib/
…
remote: ./bin/
remote: ./bin/gsl-histogram
remote: ./bin/gsl-config
remote: ./bin/gsl-randist
remote: ./share/
…
remote: ./share/man/man1/gsl-histogram.1
remote: ./share/man/man1/gsl-randist.1
remote: ./share/man/man1/gsl-config.1
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.5.0
remote: -----> Installing dependencies using bundler 1.15.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem     install bundler`.
remote:        Fetching gem metadata from https://rubygems.org/.........
remote:        Fetching version metadata from https://rubygems.org/..
remote:        Fetching dependency metadata from https://rubygems.org/.
…
remote:        Fetching gsl 2.1.0.3
remote:        Installing gsl 2.1.0.3 with native extensions
…
remote:        Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:
remote:        current directory:
remote:        /tmp/build_a16a258cc52f9887719444fc25fc24ba/vendor/bundle/ruby/2.5.0/gems/gsl-2.1.0.3/ext/gsl_native
remote:        /tmp/build_a16a258cc52f9887719444fc25fc24ba/vendor/ruby-2.5.0/bin/ruby -r
remote:        ./siteconf20180828-229-x5tnap.rb extconf.rb
remote:        *** ERROR: missing required library to compile this module: No such file or
remote:        directory - gsl-config
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_a16a258cc52f9887719444fc25fc24ba/vendor/ruby-2.5.0/bin/$(RUBY_BASE_NAME)
remote:        	   --with-gsl-version
remote:
remote:        extconf failed, exit code 1
remote:
remote:        Gem files will remain installed in
remote:        /tmp/build_a16a258cc52f9887719444fc25fc24ba/vendor/bundle/ruby/2.5.0/gems/gsl-2.1.0.3
remote:        for inspection.
remote:        Results logged to
remote:        /tmp/build_a16a258cc52f9887719444fc25fc24ba/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/gsl-2.1.0.3/gem_make.out
remote:
remote:        An error occurred while installing gsl (2.1.0.3), and Bundler cannot continue.
remote:        Make sure that `gem install gsl -v '2.1.0.3'` succeeds before bundling.
…
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed    
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