Geo Django mac OS X

你。 提交于 2020-01-01 19:48:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!