- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
尝试在已编译 Python 3.6.4 的 Linux 系统上安装 GEOS-3.6.2。我正在尝试使用以下命令制作包:
export PYTHON=/usr/local/bin/python3 && make && sudo make install
配置命令失败:
...much snipped...
checking for swig... /usr/bin/swig
checking for SWIG version... 3.0.8
configure: SWIG executable is '/usr/bin/swig'
configure: SWIG library directory is '/usr/share/swig3.0'
checking for python version... 3.6
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.6/site-packages
checking for Python include path... /usr/local/include/python3.6m
checking for Python library path...
configure: error: cannot find Python library path
我已确认 Python 库存在于/usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a`
我用一个简单的 ./configure --prefix=/usr/local && make && sudo make install 编译了 python
系统资料:
~/Downloads/geos-3.6.2$ uname -a
Linux Sleipnir 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
~/Downloads/geos-3.6.2$ which python3
/usr/local/bin/python3
~/Downloads/geos-3.6.2$ python3 -V
Python 3.6.4
~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
最佳答案
多亏了 Knud 的上述评论,GEOS 才得以正确编译。Python 现在配置为 ./configure --prefix=/usr/local --enable-shared
然后是 sudo ldconfig -v /usr/local/lib
在这些操作之后,GEOS 使用 export PYTHON=/usr/local/bin/python3 && ./configure --prefix=/usr/local --enable-python && make && sudo make install
编译得很好
更新:在尝试在另一个系统上构建 GEOS 时,我再次遇到了这个问题。这次解决方案略有不同。 Python 编译构建库,文件名为 libpython3.6m.so.1.0
. GEOS 配置正在寻找 libpython$PYTHON_VERSION.*
的模式.如果 python 版本确定为系统返回的 3.6,则构建将由于添加的 'm' 而失败。
额外的 FIX 是添加一个符号链接(symbolic link)作为 ln -s libpython3.6m.1.0 libpython3.6.so
在库目录中。
关于python - 在 Linux 上使用 Python 模块编译 GEOS 3.6.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49561381/
我正在尝试按照以下方式根据教程使用 Bio.Geo 解析 GEO 文件: from Bio import Geo handle = open('GSE40603_combined_L1_L2.txt'
我在 Geo::Coder::US 工作和 Geo::Coder::US::Import .他们说我需要导入数据库,他们的示例没有显示如何执行此操作,至少对于现在可行的方式。 Geo::Coder::
我目前正在使用 C++ GEOS API 迭代 typedef Points(x 和 y 成员变量)的 vector。 我通过创建一个 geos::geom::Geometry 对象,在 0 处缓冲以
我正在使用 feedparser 来解析 XML 文件。但我无法解析 , 使用该文件中的 feedparser 进行标记!你们知道我如何在 python 中使用 feedparser 解析这些标签吗
我有一个 geojson 文档,我想对其执行一些 GEOS 转换,例如:计算交点、从另一个多边形中减去多边形等。 我已经能够创建 geo_types::Polygon来自文档,但无法将其转换为 GEO
我在 Ubuntu 14.04 LTS 上运行 Django 1.8 和 Python 3.4。就在最近,我的 Django 应用一直在报告 GEOS 不存在。 GEOS 已安装并且 libgeos_
Android 是否支持地理围栏,如果是,那么最早支持地理围栏功能的平台是什么。 最佳答案 在您提出问题时没有支持,但 Google 刚刚发布了该功能作为 Google IO 2013 的一部分: h
我创建了一个应用程序,可以向您发送某个位置的纬度/经度,我想知道是否有一种统一的方式通过文本消息发送它,这样 Android 或 iPhone 可能允许用户单击它并打开它 map 中的位置。 是的,A
我正在运行此查询 SELECT country, countries.code, countries.lat, countries.lng, countries.zoom, worldip.start
以下是我用于在距给定纬度/经度坐标的给定距离内定位教区的 SQL: SELECT record_id as parish_id, parish, church, ( 3959 * acos( cos(
我正在考虑使用 GEO 提醒的应用程序(在 iOS5 中添加的应用程序,当我离开/到达时在某个位置提醒我)。但我需要使用此功能(实际上,仅使用位置)来获取当前位置并将其与我的应用程序定义的位置进行比较
我想弄清楚如何在 geo.lua 中实际调用 GEOMETRYFILTER 函数,因为文档对我来说不是很清楚: https://github.com/RedisLabs/geo.lua#GEOMETR
我收到这个错误: ImportError: Could not find the GEOS library (tried ""geos_c"", ""libgeos_c-1""). Try sett
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我遵循了几个关于 Redis 中地理空间支持的示例。我尝试毫无问题地向我的 Redis 数据集添加 POINT 特征,随后我可以查询某个坐标(或 POINT 的某个成员)的某个半径(以米、公里、英里为
Flutter geolocator 总是分别给我这个纬度和经度 37.4219983, -122.084,这不是我的真实地址,所以我该如何改进它。 最佳答案 似乎您正在使用模拟器。这是给模拟器的默认
我一直在深入研究将NEST用于将使用ElasticSearch的基于.Net的项目,但是让我感到困惑的是,GeoDistance查询从未返回任何结果。 当调试简单的“*”查询的响应并查看搜索结果的.D
嘿,我正在开发一个应用程序,我需要根据距离过滤器显示所提供的纬度和经度的地点。我正在提供来自 elastic search 的数据。我可以使用 geo_distance 查询轻松地提供数据,以查找具有
当您使用 GEOADD 命令在 Redis 中添加键时,该条目将保存为排序集(类型:zset)。 我的问题是,有没有办法(也许使用Lua?)来确定排序集中的数据是否是“GEO”数据? 最佳答案 由于
映射地址属性:id name type和location。搜索映射: { "address": { "properties": { "id": { "type"
我是一名优秀的程序员,十分优秀!