dark-panda / ffi-geos

ffi-geos is an implementation of the GEOS Ruby bindings in Ruby via FFI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not find library packaged in geos-3.3.2-1.el6.x86_64

liaody opened this issue · comments

el6 libraries are named like these:
/usr/lib64/libgeos_c.so.1.7.2
/usr/lib64/libgeos_c.so.1

The ffi-geos tries to load only .so files with optional version before .so, not after.

(To work around, I had to 'ln -s /usr/lib64/libgeos_c.so.1.7.1 /usr/lib64/libgeos_c.so ')

commented

Hm, seems the libgeos_c.so file is in the geos-devel RPM in EL6. I don't have access to EL6 at the moment as we use EL5 and a custom build of GEOS for our servers where that includes the libgeos_c.so symlink on its own, so I never noticed this problem before.

Would it be possible to install the geos-devel file as less of a manual workaround? I'll look into adding support for pointing directly to a library file when I get a chance.

Thank, that's a much better work around, installing -devel solves everything.

commented

This isn't an exact fix, but this might help -- as of def8b81, you can now use the GEOS_LIBRARY_PATH environment variable to point directly to the library file and not just the directory that the library file is in. This should allow you specify a specific library file regardless of the file extensions. It's not a perfect fix, but it is flexible.

If this solves the issue in a sensible way, then I'll close the issue, but feel free to re-open if there are still any concerns.