安装Basemap

安装Basemap

我对整个 Linux 安装过程还不熟悉,所以请帮助我学习如何自己调试这个问题,我现在很困惑。

我已阅读安装指南Basemap并按照指南操作安装

我成功解压并将解压后的文件复制到/usr/local。由于我没有 GEOS 库,因此我按照说明进行安装关联,切换到GEO目录并将变量导出GEOS_DIR/usr/local。当我输入./configure --prefix=$GEOS_DIR它不起作用时,说我没有权限,经过一点挫折后,我sudo在命令前面写了它起作用了。最后我输入了 make 然后 make install 但它不起作用,错误日志很长,这是最后一点,我想这可能足以诊断问题:

make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/geos/util" || /bin/mkdir -p "/usr/local/include/geos/util"
 /usr/bin/install -c -m 644 Assert.h AssertionFailedException.h CoordinateArrayFilter.h GeometricShapeFactory.h GEOSException.h IllegalArgumentException.h IllegalStateException.h math.h Machine.h TopologyException.h UniqueCoordinateArrayFilter.h UnsupportedOperationException.h '/usr/local/include/geos/util'
make[4]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos/util'
make[3]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos/util'
make[3]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos'
make[4]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/geos" || /bin/mkdir -p "/usr/local/include/geos"
 /usr/bin/install -c -m 644 export.h geomgraph.h geomgraphindex.h geom.h geomUtil.h geosAlgorithm.h indexBintree.h indexChain.h indexQuadtree.h indexStrtree.h indexSweepline.h inline.h io.h noding.h nodingSnapround.h opBuffer.h opDistance.h operation.h opLinemerge.h opOverlay.h opPolygonize.h opPredicate.h opRelate.h opValid.h planargraph.h platform.h precision.h profiler.h spatialIndex.h timeval.h unload.h util.h version.h '/usr/local/include/geos'
make[4]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos'
make[3]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos'
make[2]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include/geos'
make[2]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/include'
make[3]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/include'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
 /usr/bin/install -c -m 644 geos.h '/usr/local/include'
make[3]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include'
make[2]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include'
make[1]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/include'
Making install in src
make[1]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/src'
Making install in algorithm
make[2]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm'
Making install in locate
make[3]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm/locate'
make[4]: Entering directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm/locate'
source='IndexedPointInAreaLocator.cpp' object='IndexedPointInAreaLocator.lo' libtool=yes \
    DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
    /bin/bash ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include    -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store  -c -o IndexedPointInAreaLocator.lo IndexedPointInAreaLocator.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -c IndexedPointInAreaLocator.cpp  -o .libs/IndexedPointInAreaLocator.o
../../../libtool: line 1128: g++: command not found
make[4]: *** [IndexedPointInAreaLocator.lo] Error 1
make[4]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm/locate'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm/locate'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/src/algorithm'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/basemap-1.0.7/geos-3.3.3/src'
make: *** [install-recursive] Error 1

希望有更多安装方面的知识的人可以帮助我弄清楚此时我应该做什么。

干杯,彼得

答案1

您的错误表明您的系统中没有g++安装软件包。请安装并重新编译它,并安装建议的软件包Basemap。使用命令:

sudo apt-get install g++
sudo apt-get install libtool
sudo apt-get install build-essential

相关内容