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

Any advice for deploying on Heroku? #35

Closed
justin808 opened this issue Oct 8, 2014 · 2 comments
Closed

Any advice for deploying on Heroku? #35

justin808 opened this issue Oct 8, 2014 · 2 comments

Comments

@justin808
Copy link
Contributor

Any advice deploying to Heroku?

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

   /tmp/build_f2e88220-adf4-4199-83ad-47efd79ecbb1/vendor/ruby-2.1.2/bin/ruby extconf.rb
   *** ERROR: missing required library to compile this module: No such file or directory - gsl-config
   *** 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=/tmp/build_f2e88220-adf4-4199-83ad-47efd79ecbb1/vendor/ruby-2.1.2/bin/ruby
   --with-gsl-version

   extconf failed, exit code 1

   Gem files will remain installed in /tmp/build_f2e88220-adf4-4199-83ad-47efd79ecbb1/vendor/bundle/ruby/2.1.0/gems/rb-gsl-1.16.0.2 for inspection.
   Results logged to /tmp/build_f2e88220-adf4-4199-83ad-47efd79ecbb1/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/rb-gsl-1.16.0.2/gem_make.out
   Installing thin 1.5.1
   Installing nokogiri 1.6.3.1
   An error occurred while installing rb-gsl (1.16.0.2), and Bundler cannot
   continue.
   Make sure that `gem install rb-gsl -v '1.16.0.2'` succeeds before bundling.

!
! Failed to install gems via Bundler.
!

@clbustos
Copy link
Owner

I don't know if heroku allows you to compile a native gem.
You could make a branch, deleting the dependence on rb-gsl. The gem is supposed to work without it, but it works a lot slower.

@justin808
Copy link
Contributor Author

I documented how to make deploy rb-gsly on heroku, with Node as well:

http://forum.railsonmaui.com/t/notes-on-deploying-to-heroku-with-gsl-and-node/89

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

2 participants