Postgis

在 ./extensions 中使用“make”建構 PostGIS 錯誤:“評論”無需執行任何操作

  • November 11, 2016

我正在使用從 SVN 簽出的程式碼。每當我跑make進去./extensions/,我得到

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'
mkdir -p sql_bits/
/usr/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g' ../../postgis/postgis_for_extension.sql > sql_bits/postgis.sql
make -C ../../doc comments
make[2]: Entering directory '/home/ecarroll/code/postgis/doc'
make[2]: Nothing to be done for 'comments'.
make[2]: Leaving directory '/home/ecarroll/code/postgis/doc'
cp ../../doc/postgis_comments.sql sql_bits/postgis_comments.sql
cp: cannot stat '../../doc/postgis_comments.sql': No such file or directory
Makefile:72: recipe for target 'sql_bits/postgis_comments.sql' failed
make[1]: *** [sql_bits/postgis_comments.sql] Error 1
make[1]: Leaving directory '/home/ecarroll/code/postgis/extensions/postgis'
Makefile:26: recipe for target 'all' failed

每當我make comments在根目錄中執行時,我都會得到一小部分錯誤,

make comments
make -C doc comments
make[1]: Entering directory '/home/ecarroll/code/postgis/doc'
make[1]: Nothing to be done for 'comments'.
make[1]: Leaving directory '/home/ecarroll/code/postgis/doc'

我該如何解決這個問題?

你需要xsltproc

16:02 < robe2> EvanCarroll: Looks like you are probably missing xsltproc

安裝xsltproc(Ubuntu/Debian 中的說明)

sudo apt-get install xsltproc;

然後,

make distclean;
./autogen.sh;
make;

然後再試一次。它應該工作。

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