我正在尝试安装底图,以便可以通过 python 修改地图,但我无法正确加载 GEOS(底图的先决条件)。我运行 ./configure,但是当我执行“sudo make; make install”时,我得到以下错误输出:
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libgeos.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Making install in include
Making install in geos
Making install in algorithm
Making install in locate
make[6]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/geos/algorithm/locate" || ../../../.././install-sh -c -d "/usr/local/include/geos/algorithm/locate"
/usr/bin/install -c -m 644 IndexedPointInAreaLocator.h PointOnGeometryLocator.h SimplePointInAreaLocator.h '/usr/local/include/geos/algorithm/locate'
install: /usr/local/include/geos/algorithm/locate/IndexedPointInAreaLocator.h: Permission denied
make[6]: *** [install-geosHEADERS] Error 71
make[5]: *** [install-am] Error 2
make[4]: *** [install-recursive] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
我已经尝试更新我的 XCode 终端命令、重新下载包并更新其他所有内容。关于如何安装它的任何想法?
抱歉,如果这是一个简单的解决方法;蟒蛇新手...