问题
I am trying to use Geodjango on mac os, i use postgresql and I installed GEOS but i got this error :
dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image found. Did find:
/usr/local/lib/libgeos_c.dylib: mach-o, but wrong architecture
Any idea?
Thank you
回答1:
Ok, I have my answer. My MAMP uses 32-bit Python and I compiled my library for 64-bit Python.
So I recompiled it for 32-bit Python. To do this, I used these commands in my library folder:
export CFLAGS=-m32
export CXXFLAGS=-m32
./configure
make
make install
来源:https://stackoverflow.com/questions/6564114/geo-django-mac-os-x