使用brew安装postgis时出错

时间:2014-12-07 17:35:39

标签: postgresql postgis

我在使用brew安装postgis时遇到问题。我收到以下错误:

==> Checking out http://svn.osgeo.org/postgis/trunk/
==> ./autogen.sh
==> ./configure --with-projdir=/usr/local --with-jsondir=/usr/local/opt/json-c --with-pgconfig=/usr/local/Cella
==> make
/bin/sh ../../libtool --mode=link clang -g -O2  -fno-common -DPIC  -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/local/include -I/usr/local/Cellar/gdal/1.11.1_3/include -I/usr/local/Cellar/geos/3.4.2/include   ../rt_core/librtcore.a raster2pgsql.o ../../liblwgeom/liblwgeom.la -L/usr/local/Cellar/gdal/1.11.1_3/lib -lgdal  -L/usr/local/Cellar/geos/3.4.2/lib -lgeos_c  -liconv -lm -o raster2pgsql
libtool: link: cannot find the library `/usr/local/lib/libgeos_c.la' or unhandled argument `/usr/local/lib/libgeos_c.la'
make[2]: *** [raster2pgsql] Error 1
make[1]: *** [rtloader] Error 2
make: *** [all] Error 1

READ THIS: http://git.io/brew-troubleshooting

These open issues may also help:
Postgis sql files not found (https://github.com/Homebrew/homebrew/issues/26604)

我看过建议的问题但没有运气。我也尝试删除并重新安装postgres。有没有人遇到类似问题并找到了解决方案?

/usr/local/lib/libgeos_c.la不在此位置。我也尝试使用brew重新安装gdal和geos。

1 个答案:

答案 0 :(得分:-1)

Postgres.app附带Postgis烘焙.Postgis人甚至推荐它作为在mac上获取postgis的最佳方式。 http://postgis.net/install/