Postgis

在 ./extensions 中使用“make”建構 PostGIS 錯誤:make111: *** 沒有製定目標的規則

  • November 10, 2016

每當我make在擴展程序中執行時,都會出錯。

make
for DIR in postgis  postgis_tiger_geocoder  postgis_topology address_standardizer; do \
   echo "---- Making all in ${DIR}"; \
   make -C "${DIR}" all || exit 1; \
done
---- Making all in postgis
make[1]: Entering directory '/home/ecarroll/code/postgis/extensions/postgis'
cp ../../doc/postgis_comments.sql sql_bits/postgis_comments.sql
make[1]: *** No rule to make target '../../raster/rt_pg/rtpostgis_for_extension.sql', needed by 'sql_bits/rtpostgis.sql'.  Stop.
make[1]: Leaving directory '/home/ecarroll/code/postgis/extensions/postgis'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 1

你必須先跑,

make;

在root中,然後你可以make執行./extensions

引用自:https://dba.stackexchange.com/questions/154910