Geo Django mac OS X [英] Geo Django mac OS X

查看:114
本文介绍了Geo Django mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Mac OS上使用Geodjango,我使用postgresql和我安装了GEOS,但是我收到了这个错误:

  dlopen(/usr/local/lib/libgeos_c.dylib,6):找不到合适的图像。找到:
/usr/local/lib/libgeos_c.dylib:mach-o,但错误的架构

任何想法?



谢谢

解决方案

Ok我有答案我的MAMP使用32位Python,我编译了64位Python的库。



所以我重新编译了32位Python。为此,我在库文件夹中使用了这些命令:

  export CFLAGS = -m32 
export CXXFLAGS = m32

./configure
make
make install


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

解决方案

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

这篇关于Geo Django mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆