在带有 MacPorts 的 Snow Leopard 上使用 postgresql84 和 postgis 时没有 liblwgeom

发布于 2024-08-05 02:33:59 字数 583 浏览 4 评论 0原文

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

安装完这两个文件后:

sudo port install postgresql84 postgresql84-server postgis

当我尝试加载 sql 数据库时,我收到如下错误,该数据库引用了 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 中,谷歌搜索让我摸不着头脑。有什么想法吗?

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.

After installing both with the following:

sudo port install postgresql84 postgresql84-server postgis

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.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

波浪屿的海角声 2024-08-12 02:33:59

liblwgeom.so 附带 PostGIS 版本 1.3。它在 1.4 中已重命名。看起来您的转储是 PostGIS 1.3 的数据库,而您正尝试在 PostGIS 1.4 中重新加载。不支持此操作。

有关具体操作的详细信息,请参阅有关升级的 PostGIS 手册。

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.

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

动听の歌 2024-08-12 02:33:59

更新您的端口:

sudo port selfupdate

然后安装 postgis 1.4,它将适用于 postgresql 8.4

sudo port install postgis

Update your ports:

sudo port selfupdate

Then install postgis 1.4, which will work for postgresql 8.4

sudo port install postgis
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文