1
,我得到了下面的錯誤使安裝了PostGIS 1.5.2與9.0.3的Postgres在Mac OS X Snow Leopard的失敗
gcc -g -O2 -fno-common -DPIC -Wall -Wmissing-prototypes stringbuffer.o shpopen.o dbfopen.o safileio.o getopt.o shp2pgsql-core.o shp2pgsql-cli.o ../liblwgeom/liblwgeom.a -o shp2pgsql -liconv -lm
Undefined symbols:
"_libiconv_open", referenced from:
_utf8 in shp2pgsql-core.o
"_libiconv_close", referenced from:
_utf8 in shp2pgsql-core.o
_utf8 in shp2pgsql-core.o
"_libiconv", referenced from:
_utf8 in shp2pgsql-core.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [shp2pgsql] Error 1
make: *** [loaderdumper] Error 2
什麼解決的辦法?