cyberdelia / heroku-geo-buildpack

Geo libraries for Heroku
https://github.com/heroku/heroku-geo-buildpack
113 stars 135 forks source link

Unable to find geo binaries in Heroku (cedar-14, Ruby 2.2) #30

Open andrewhao opened 9 years ago

andrewhao commented 9 years ago

All the correct buildpack binaries are built in .heroku/vendor/bin:

~/.heroku/vendor/bin $ ls -a
...
-rwx------ 1 u59305 59305  39320 Apr 12 15:57 nad2bin
-rwx------ 1 u59305 59305 174634 Apr 12 15:57 nearblack
-rwx------ 1 u59305 59305 397507 Apr 12 15:57 ogr2ogr
-rwx------ 1 u59305 59305  93786 Apr 12 15:57 ogrinfo
-rwx------ 1 u59305 59305 318521 Apr 12 15:57 ogrlineref
-rwx------ 1 u59305 59305  61095 Apr 12 15:57 ogrtindex
-rwx------ 1 u59305 59305  70076 Apr 12 15:57 proj
-rwx------ 1 u59305 59305  33347 Apr 12 15:57 testepsg

However, the RGeo documentation states that:

Note: By default, the gem installation looks for the GEOS library in the following locations: /usr/local, /usr/local/geos, /opt/local, /opt/geos, /opt, /usr, and /Library/Frameworks/GEOS.framework/unix. In other words, MacPorts, Homebrew, the Kyngchaos port, and building from source to /usr/local are supported out of the box.

Alternatively, I need to compile the gems with a flag to the vendored binaries in .heroku.

I can't find symlinks to these files anywhere in Heroku's /usr/local

What is the correct behavior here? Should I expect the binaries to have symlinks? Should I be configuring my app to build gems with flags pointing to the binaries?

woahdae commented 8 years ago

Same problem here. I'll hack something together, but it'd be nice for this to work out of the box.

mgiraldo commented 8 years ago

any news? i am having a similar problem #20

woahdae commented 8 years ago

Try #34 and see if that works for you. Give the PR a nudge if so (please).

mgiraldo commented 8 years ago

i ended up doing what was suggested in https://github.com/rgeo/rgeo/issues/125#issuecomment-189192788

but it feels like a hack...

i tried several of the suggestions in #34 but they didnt work for me :\