2014-12-07 92 views
0

我在使用brew安裝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。

回答