本文介绍了当在MacPorts的Snow Leopard上使用postgresql84和postgis时,没有liblwgeom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Snow Leopard后,我试图恢复我的开发环境并运行.特别是,我需要postgresql和postgis正常工作,但是我遇到了以下问题.

I'm trying to get my dev environment back up and running after upgrading to Snow Leopard. In particular, I need postgresql and postgis working, but I'm running into the following problem.

同时安装以下各项:

sudo port install postgresql84 postgresql84-server postgis

当我尝试加载引用了liblwgeom.so的sql数据库时,出现类似以下的错误

I get errors like the following when I try to load my sql database, which has references to liblwgeom.so

ERROR:  function public.box3d_in(cstring) does not exist
ERROR:  incompatible library "/usr/local/pgsql/lib/liblwgeom.so": version mismatch
DETAIL:  Server is version 8.4, library is version 8.3.

该文件确实存在于我的计算机上,但必须位于旧版本的Postgresql 8.3中.问题是我不知道liblwgeom.so应该来自哪里.它未包含在postgis 1.4中,并且Google搜索让我抓狂.有什么想法吗?

That file does exist on my computer, but must be sitting around from an old install of postgresql 8.3. The problem is I can't figure out where liblwgeom.so is supposed to come from. It's not included in postgis 1.4, and a Google search is leaving me scratching my head. Any ideas?

推荐答案

liblwgeom.so随PostGIS vesion 1.3一起提供.它已在1.4中重命名.看起来您的转储是使用PostGIS 1.3的数据库的转储,并且您试图在PostGIS 1.4中重新加载.不支持.

liblwgeom.so comes with PostGIS vesion 1.3. It has been renamed in 1.4. It looks like your dump is of a database with PostGIS 1.3 and you're trying to reload in PostGIS 1.4. This is not supported.

有关升级的信息,请参见PostGIS手册要做.

See the PostGIS manual on upgrading for details on what to do.

这篇关于当在MacPorts的Snow Leopard上使用postgresql84和postgis时,没有liblwgeom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 23:15