我正在尝试安装底图,所以我可以通过python修改地图,但我无法正确加载GEOS(baseq for basemap)。我运行./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终端命令,重新下载包,并更新其他所有内容。关于如何安装这个的任何想法?
道歉,如果这是一个简单的解决方案;新手到蟒蛇......
答案 0 :(得分:3)
关键错误信息是:
install: /usr/local/include/geos/algorithm/locate/IndexedPointInAreaLocator.h: Permission denied
默认情况下,在OS X(以及大多数其他Unix-y系统)上,您需要管理员权限才能在/usr/local
及其子目录中创建文件。尝试使用sudo
运行make install:
sudo make install