闪亮的部署错误:在安装软件包"lwgeom"时将GEOS升级到3.6.0或更高版本 [英] Shiny deployment error: upgrade GEOS to 3.6.0 or later while installing package ‘lwgeom’

查看:419
本文介绍了闪亮的部署错误:在安装软件包"lwgeom"时将GEOS升级到3.6.0或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个闪亮的应用程序,可以在计算机上正常运行.我使用包sfleaflettmap.其中之一需要软件包lwgeom作为依赖项.在安装软件包lwgeom时,闪亮的部署会显示以下错误消息.什么是GEOS?以及如何将GEOS升级到3.6.0或更高版本?

I have a shiny app that runs fine on my computer. I use packages sf, leaflet, and tmap. One of these requires the package lwgeom as a dependency. While installing the package lwgeom, shiny deployment gives me the following error message. What is GEOS? And how can I upgrade GEOS to 3.6.0 or later?

Building R package: lwgeom (0.2-4)

/mnt/packages/build /mnt

* installing to library ‘/opt/R/4.0.0/lib/R/library’

* installing *source* package ‘lwgeom’ ...

** package ‘lwgeom’ successfully unpacked and MD5 sums checked

** using staged installation

configure: CC: gcc

configure: CXX: g++ -std=gnu++11

configure: pkg-config proj exists, will use it

configure: PROJ: 4.9.2

checking for pj_init_plus in -lproj... yes

checking PROJ: epsg found and readable... yes

configure: POSTGIS_PROJ_VERSION: 49

checking for geos-config... /usr/bin/geos-config

checking geos-config usability... yes

configure: GEOS: 3.5.1

checking GEOS version >= 3.6.0... no

configure: error: upgrade GEOS to 3.6.0 or later

ERROR: configuration failed for package ‘lwgeom’

* removing ‘/opt/R/4.0.0/lib/R/library/lwgeom’

################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 741115836 failed: Error building image: Error building lwgeom (0.2-4). Build exited with non-zero status: 1
Execution halted  

推荐答案

来自 lwgeom自述文件:

From the lwgeom readme:

lwgeom取决于 sf ,该软件必须首先安装.该软件包使用liblwgeom库,并编译出厂(和已修改)的liblwgeom版本.它链接到GEOS和PROJ库.

lwgeom depends on sf, which has to be installed first. This package uses the liblwgeom library, and compiles a shipped (and modified) version of liblwgeom. It links to the GEOS and PROJ libraries.

要从源代码安装,从源代码安装sf就足够了;该程序包的资源(PROJ,GEOS)正在重复使用.

To install from source, it should be enough to have installed sf from source; the resources for this package (PROJ, GEOS) are being reused.

sf主页

R的简单功能

一个为R提供简单功能访问权限的程序包.程序包sf:

Simple Features for R

A package that provides simple features access for R. Package sf:

[snip]

  • GEOS 的接口,以支持包括
  • interfaces to GEOS to support geometrical operations including the DE9-IM

那应该回答您的什么是GEOS?";问题,但您可能需要访问 GEOS主页以获得更长的版本.

That should answer your "What is GEOS?" question, but you might want to visit the GEOS homepage for a longer version.

无论如何,您似乎都是从Linux上的源代码构建的lwgeom,因此请务必阅读.您可能需要升级libgeos-dev系统软件包,但是升级过程取决于您的linux发行版.让我再次引用sf主页,假设您将Ubuntu作为发行版运行:

In any case, you seem to be building lwgeom from source on Linux, so do read its install-from-source instructions. You'll probably want to upgrade the libgeos-dev system package, but the procedure to do so depends on your linux distribution. Let me quote the sf homepage once again, assuming you're running Ubuntu as your distro:

Ubuntu

[snip]

Ubuntu

[snip]

但是,要获取更多最新版本的依赖项(例如GDAL),我们建议将ubuntugis不稳定的PPA添加到软件包存储库中,并按以下方式安装它们:

However, to get more up-to-date versions of dependencies such as GDAL, we recommend adding the ubuntugis-unstable PPA to the package repositories and installing them as follows:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev 

(很明显,不同的发行版将需要使用不同的方法来安装/升级系统软件包)

(It should be obvious that a different distro shall require a different method to install/upgrade system packages)

这篇关于闪亮的部署错误:在安装软件包"lwgeom"时将GEOS升级到3.6.0或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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