shiny - 闪亮的部署错误:在安装包“lwgeom”时将 GEOS 升级到 3.6.0 或更高版本
问题描述
我有一个闪亮的应用程序在我的电脑上运行良好。我使用包sf
、leaflet
和tmap
. 其中之一需要包lwgeom
作为依赖项。安装包lwgeom
时,闪亮的部署给了我以下错误消息。是什么GEOS
?以及如何升级GEOS
到 3.6.0 或更高版本?
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
解决方案
更新:我通知了 shinyapps.io,几周后他们升级到了 GEOS 3.8.0。所以,现在我的应用程序部署得很好。
推荐阅读
- php - array_walk 返回 true 而方法对所有元素返回 false
- google-chrome-devtools - 有什么方法可以在不重新记录的情况下捕获指标并比较两个版本或应用程序版本之间的结果
- html - 如何在不影响其他小部件文本的情况下更改博客文章片段长度?
- javascript - 反应:对 Firebase 的超时调用
- gitlab-ci - Gitlab如何在CI中评论发布?
- javascript - JSON 在 console.log 中显示的值与在检查中显示的值不同
- c++ - 类层次结构哈希表
- eclipse - 在 Eclipse 的 Console 视图(用于调试控制台)中,如何修改专用于输出和命令输入的视图的大小
- maven - maven 构建问题并出现错误无法运行程序“/bin/sh”:错误=2
- amazon-web-services - 使用 AWS lambda 在 Athena 上运行查询