Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/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
Macos 在Mac上为PostgreSQL 9.1编译PostGIS_Macos_Postgresql_Makefile_Installation_Postgis - Fatal编程技术网

Macos 在Mac上为PostgreSQL 9.1编译PostGIS

Macos 在Mac上为PostgreSQL 9.1编译PostGIS,macos,postgresql,makefile,installation,postgis,Macos,Postgresql,Makefile,Installation,Postgis,我现在真的用这个把头撞到墙上了 我已经在Postgres站点上从DMG安装了PostgreSQL。我现在有了9.1版。然后,我使用堆栈生成器安装PostGIS扩展 但是,尽管下载并通过构建器没有错误,但没有迹象表明它已安装。没有模板,任何地方都没有PostGIS文件夹 所以我试着从源代码安装PostGIS。它配置良好,但PostGIS 1.5.3和2.0版的make始终失败 终端的全部读数如下所示: 我真的非常感谢任何帮助,因为我真的需要安装PostGIS。这似乎是一个编译错误,没有链接相应的

我现在真的用这个把头撞到墙上了

我已经在Postgres站点上从DMG安装了PostgreSQL。我现在有了9.1版。然后,我使用堆栈生成器安装PostGIS扩展

但是,尽管下载并通过构建器没有错误,但没有迹象表明它已安装。没有模板,任何地方都没有PostGIS文件夹

所以我试着从源代码安装PostGIS。它配置良好,但PostGIS 1.5.3和2.0版的
make
始终失败

终端的全部读数如下所示:

我真的非常感谢任何帮助,因为我真的需要安装PostGIS。这似乎是一个编译错误,没有链接相应的库


有人能给我一些提示吗?

我有10.6.8中的以下MBP:

$uname-a
Darwin yegorow.local 10.8.0达尔文内核版本10.8.0:Tue Jun 7 16:33:36 PDT 2011;根目录:xnu-1504.15.3~1/RELEASE_I386 I386 I386 MacBookPro3,1
$gcc—版本
i686-apple-darwin10-gcc-4.2.1(gcc)4.2.1(苹果公司构建5666)(dot 3)
$/Developer/usr/bin/xcodebuild-版本
代码3.2.6
组件版本:DevToolsCore-1809.0;DevToolsSupport-1806.0
构建版本:10M2518
我还有MacPorts,
libreadline
libxml2
位于MacPorts目标文件夹中,而不是系统范围内。我只是喜欢这样的设置

首先,我从以下来源构建了PostgreSQL 9.1.3:

/configure--prefix=$HOME/prj/pg/9.1.3--with pgport=9130--with python
制作
安装
然后我下载并安装了3.3.2和4.7.0(确保下载
roj-datumgrid-1.5.zip
并将其解压缩到
proj-4.7.0/nad
):

/configure--prefix=$HOME/prj/pg/9.1.3
制作
安装
最后,我获得了最新的postGIS版本1.5.3,并对其进行了编译:

/configure--prefix=$HOME/prj/pg/9.1.3\
--使用pgconfig=$HOME/prj/pg/9.1.3/bin/pg_config\
--使用geosconfig=$HOME/prj/pg/9.1.3/bin/geos-config\
--带projdir=$HOME/prj/pg/9.1.3/\
--with-xml2config=/opt/local/bin/xml2 config
制作
安装
我将不描述创建空间启用数据库所需的步骤。 事实上,我是第一次构建postGIS。 希望有帮助:)


另外,如果需要,我可以在此过程中提供帮助,请告诉我。

谢谢。我在编译postGIS时遇到了问题,所以我已经完成了这些步骤。对我来说,成功的方法是升级到Lion并做到这一点: