clbustos / statsample

A suite for basic and advanced statistics on Ruby.
http://github.com/clbustos/statsample
BSD 3-Clause "New" or "Revised" License
403 stars 96 forks source link

Any advice for deploying on Heroku? #35

Closed justin808 closed 9 years ago

justin808 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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