如何在debian raspberry pi上安装geos [英] How to install geos on debian raspberry pi

查看:257
本文介绍了如何在debian raspberry pi上安装geos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在raspberry pi上安装geos,运行rasbian wheezy,以便我可以在我的python脚本中包含整形模块。
我尝试使用:
git clone git://git.debian.org/git/pkg-grass/geos



这下载正确,但是当我尝试运行我的python脚本,它给我一个追溯错误说
OSError:找不到库geos_c或加载任何其变体['libgeos_c.so.1','libgeos_c.so']



我把geos放在错误的地方吗?有没有一种特殊的方式来构建文件?
感谢您的帮助!

解决方案

您刚刚下载了这些资源。我想你想要安装二进制包。要安装它,键入(作为root):

  apt-get install libgeos ++ 


Hi I am trying to install geos on a raspberry pi running rasbian wheezy so that I can include the shapely modules in my python scripts. I tried using: git clone git://git.debian.org/git/pkg-grass/geos

this downloads properly, but when I try to run my python script it gives me a traceback error saying OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

have I put geos in the wrong place? is there a special way to build the files? Thanks for your help!

解决方案

You have just downloaded the sources so far. I guess you wanted to install the binary package instead. To install it, type (as root):

apt-get install libgeos++

这篇关于如何在debian raspberry pi上安装geos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆