ubuntu-18.04 - 安装 tmap r 包 ubuntu 18.04 时出现问题
问题描述
我收到以下错误:
* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘lwgeom’
以前我遵循这个:https ://philmikejones.me/tutorials/2018-08-29-install-sf-ubuntu/
sf 和 rgdal 安装没有问题
我有其他三台具有相同操作系统的机器,以前没有遇到过这个问题。
R版本:
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
解决方案
我正在寻找完全相同的问题,并找到了解决方案:
devtools::install_github("r-spatial/lwgeom")
由于我无法理解的原因,CRAN 版本似乎与 Ubuntu 不兼容,但是通过 devtools 安装它让我可以先安装 lwgeom 然后再安装 tmaptools 完全没有问题。我希望它有帮助!
推荐阅读
- django - 我想查询以从命令行获取详细信息
- c# - 构建正则表达式模式以最终从数据中选择所需的文本
- php - 即使登录详细信息正确,我的dashboard.php 也不会加载
- url - 通过打开的 url 请求
- python - 检测重复元素python
- amazon-web-services - AWS弹性转码器不添加水印文字
- javascript - Javascript 字符串到 Base64 UTF-16BE
- php - 可以从条带标准中检索付款意图吗?
- php - 缩短的摘录功能仅适用于有摘录的帖子
- websphere-liberty - Liberty 19.0.0.7 - 登录后如何加载 lpda 配置文件属性