Question

Hi I am trying to install geos on a raspberry pi running rasbian wheezy so that I can include the shapely modules in my python scripts. I tried using: git clone git://git.debian.org/git/pkg-grass/geos

this downloads properly, but when I try to run my python script it gives me a traceback error saying OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

have I put geos in the wrong place? is there a special way to build the files? Thanks for your help!

Was it helpful?

Solution 2

You have just downloaded the sources so far. I guess you wanted to install the binary package instead. To install it, type (as root):

apt-get install libgeos++

OTHER TIPS

Shapely uses the GEOS C API. Install it (and the dependencies) with:

apt-get install libgeos-c1

Also, if you need the Cython speedups for Shapely, you will need:

apt-get install libgeos-dev
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top