Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql macport selfupdate改变了postgis环境_Postgresql_Osx Snow Leopard_Macports_Postgis - Fatal编程技术网

Postgresql macport selfupdate改变了postgis环境

Postgresql macport selfupdate改变了postgis环境,postgresql,osx-snow-leopard,macports,postgis,Postgresql,Osx Snow Leopard,Macports,Postgis,上个月,我通过macports在Mac with Leopard(10.5)上安装了PostgresSql 8.4.1和Postgis 1.4,一切正常。然后我更新到雪豹(10.6),但一切都很好。昨天我尝试用macports安装Gimp,但安装失败。所以我做了一个“端口自我更新”,它似乎破坏了我的Postgis安装的一部分 尝试访问数据库中包含几何列的表时,我收到以下错误: 错误:无法加载库“/opt/local/lib/postgresql84/postgis-1.4.so”:dlopen(

上个月,我通过macports在Mac with Leopard(10.5)上安装了PostgresSql 8.4.1和Postgis 1.4,一切正常。然后我更新到雪豹(10.6),但一切都很好。昨天我尝试用macports安装Gimp,但安装失败。所以我做了一个“端口自我更新”,它似乎破坏了我的Postgis安装的一部分

尝试访问数据库中包含几何列的表时,我收到以下错误:

错误:无法加载库“/opt/local/lib/postgresql84/postgis-1.4.so”:dlopen(/opt/local/lib/postgresql84/postgis-1.4.so,10):未加载库:/opt/local/lib/libgeos_c.1.dylib 引用自:/opt/local/lib/postgresql84/postgis-1.4.so 原因:未找到合适的图像。确实发现: /opt/local/lib/libgeos_c.1.dylib:mach-o,但架构错误 SQL状态:58P01

其他非postgis表仍然可以访问

我已使用“port installed”(端口已安装)检查postgis是否可能已卸载,并收到以下列表:

postgis@1.4.0_1+postgresql84(活动)
postgresql84@8.4.0_0
postgresql84@8.4.1_0(活动)
postgresql84服务器@8.4.0_0(活动)


我假设丢失的表仍在磁盘上,但没有正确引用。有没有办法在硬盘上搜索数据库,或者更改引用?

当您从10.5升级到10.6时,是否重新安装了MacPorts并重新安装了端口?MacPorts(及其管理的端口)与安装它的操作系统的版本紧密相关。如果升级操作系统,则应重新安装MacPorts(以及您的端口)。更多信息可以在中找到。

我的新笔记本电脑的Xcode磁盘设置错误。当我安装了正确的(最新)版本时,一切正常。谢谢米帕迪