Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

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

Open
andrewhao opened this issue Apr 12, 2015 · 4 comments
Open

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

andrewhao opened this issue Apr 12, 2015 · 4 comments

Comments

@andrewhao
Copy link

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
Copy link
Contributor

woahdae commented Jan 31, 2016

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

@mgiraldo
Copy link

any news? i am having a similar problem #20

@woahdae
Copy link
Contributor

woahdae commented Mar 24, 2016

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

@mgiraldo
Copy link

i ended up doing what was suggested in rgeo/rgeo#125 (comment)

but it feels like a hack...

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants