开发者

Geo Django mac OS X

I am trying to use Geodjango on mac os, i use postg开发者_开发百科resql 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


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜