【问题标题】:Problem installing tmap r package ubuntu 18.04安装 tmap r 包 ubuntu 18.04 时出现问题
【发布时间】:2020-08-02 08:17:25
【问题描述】:

我收到以下错误:

* 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)

【问题讨论】:

    标签: ubuntu-18.04 tmap


    【解决方案1】:

    我正在寻找完全相同的问题并找到了解决方案:

      devtools::install_github("r-spatial/lwgeom")
    

    由于我无法理解的原因,CRAN 版本似乎与 Ubuntu 不兼容,但通过 devtools 安装它让我可以先安装 lwgeom 然后再安装 tmaptools 一点问题都没有。希望对你有帮助!

    【讨论】:

      猜你喜欢
      • 2019-02-16
      • 1970-01-01
      • 2020-08-08
      • 1970-01-01
      • 2021-01-03
      • 1970-01-01
      • 1970-01-01
      • 2022-07-12
      • 2019-11-11
      相关资源
      最近更新 更多