2

我正在尝试安装底图,以便可以通过 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 终端命令、重新下载包并更新其他所有内容。关于如何安装它的任何想法?

抱歉,如果这是一个简单的解决方法;蟒蛇新手...

4

1 回答 1

3

关键错误信息是:

install: /usr/local/include/geos/algorithm/locate/IndexedPointInAreaLocator.h: Permission denied

默认情况下,在 OS X(和大多数其他 Unix-y 系统)上,您需要管理员权限才能在/usr/local其及其子目录中创建文件。尝试使用以下命令运行 make install sudo

sudo make install
于 2013-06-15T17:52:49.553 回答