在使用MacPorts的Snow Leopard上使用postgresql84和postgis时没有liblwgeom
-
06-07-2019 - |
题
升级到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中,谷歌搜索让我感到头疼。有什么想法吗?
解决方案
liblwgeom.so附带PostGIS vesion 1.3。它已在1.4中重命名。看起来您的转储是PostGIS 1.3的数据库,并且您正尝试在PostGIS 1.4中重新加载。这不受支持。
有关详细信息,请参阅升级上的PostGIS手册。要做。
其他提示
更新您的端口:
sudo port selfupdate
然后安装postgis 1.4,这将适用于postgresql 8.4
sudo port install postgis
不隶属于 StackOverflow