I'm trying to deploy a Rails app (ruby 2.3.0, rails 4.2.6) to Heroku that uses the RGeo gem, but I'm having no luck installing the underlying GEOS library upon which the RGeo gem relies (See https://github.com/rgeo/rgeo#dependencies).
According to Heroku's own instructions, this should be possible by using the heroku-geo-buildpack, but it's not working.
ADD BUILDPACK TO APP:
$ heroku buildpacks:set https://github.com/cyberdelia/heroku-geo-buildpack.git
$ heroku buildpacks:add heroku/ruby
BUILD PROCESS LOOKS GOOD:
remote: Building source:
remote:
remote: -----> geos/gdal/proj app detected
remote: Using geos version: 3.4.2
remote: Using gdal version: 1.11.1
remote: Using proj version: 4.8.0_1
remote: -----> Vendoring geo libraries done
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.3.0
TEST DEPENDENCY:
>>> require 'rgeo'
=> false
>>> RGeo::CoordSys::Proj4.supported?
=> true
>>> RGeo::Geos.supported?
=> false
While the previously accepted answer worked at the time, those buildpacks have since been deprecated.
The current solution seems to be to use the newer heroku-geo-buildpack.
Other options can be found here: rgeoEnable-GEOS-and-Proj4-on-Heroku.md at main ยท rgeorgeo - GitHub