安装Postgis2.1.8的编译问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
暴走玛丽
帖子: 1
注册时间: 2015-08-30 0:47
系统: ububtu 12.04

安装Postgis2.1.8的编译问题

#1

帖子 暴走玛丽 » 2015-08-30 0:56

Ubuntu 12.04
配置如下:
----------------------------------------------------------------
PostGIS is now configured for x86_64-unknown-linux-gnu

-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
SQL preprocessor:

-------------- Dependencies --------------
GEOS config: /usr/local/bin/geos-config
GEOS version: 3.4.2
GDAL config: /usr/local/bin/gdal-config
GDAL version: 1.11.2
PostgreSQL config: /usr/local/pgsql/bin/pg_config
PostgreSQL version: PostgreSQL 9.4.4
PROJ4 version: 49
Libxml2 config: /usr/local/bin/xml2-config
Libxml2 version: 2.9.2
JSON-C support: yes
PostGIS debug level: 0
Perl: /usr/bin/perl

--------------- Extensions ---------------
PostGIS Raster: enabled
PostGIS Topology: enabled
SFCGAL support: disabled

-------- Documentation Generation --------
xsltproc:
xsl style sheets:
dblatex:
convert:
mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
---------------------------------------------------------------------------------------------

编译时Error:
---------------------------
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.1'g" > legacy_minimal.sql
I../libpgcommon legacy_gist.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.1'g" > legacy_gist.sql
/bin/sh: 1: I../libpgcommon: not found
/usr/bin/perl ../utils/create_undef.pl sfcgal.sql 94 > uninstall_sfcgal.sql
/bin/sh: 1: I../libpgcommon: not found
/usr/bin/perl ../utils/create_undef.pl postgis.sql 94 > uninstall_postgis.sql
cat postgis_drop_before.sql postgis.sql postgis_drop_after.sql > postgis_upgrade_20_21.sql.in
/usr/bin/perl ../utils/create_undef.pl legacy.sql 94 > uninstall_legacy.sql
/usr/bin/perl ../utils/postgis_proc_upgrade.pl postgis_upgrade_20_21.sql.in 2.0 > postgis_upgrade_20_21.sql
Unable to locate target new version number in postgis_upgrade_20_21.sql.in
Makefile:170: recipe for target 'postgis_upgrade_20_21.sql' failed
make[1]: *** [postgis_upgrade_20_21.sql] Error 255
make[1]: *** Deleting file 'postgis_upgrade_20_21.sql'
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/root/postgis-2.1.8/postgis'
GNUmakefile:14: recipe for target 'all' failed
make: *** [all] Error 1
----------------------------------------

个人分析下来,感觉是 SQL preprocessor: 没有找到导致的,
但是,不知道这个问题怎么解决?
哪位大神遇到过?求指导
回复