从conda安装gdal 2.3后,sf R软件包“与2.0.0以下的GDAL版本不兼容”

马克斯·吉尼斯(Max Ghenis)

在尝试安装sfR软件包时,出现错误消息:

checking GDAL version >= 2.0.0... no
configure: error: sf is not compatible with GDAL versions below 2.0.0

然后,我从conda安装了gdal2.3.1并确认了版本:

gdalinfo --version

GDAL 2.3.1,发布于2018/06/22

但是我仍然收到相同的错误消息。

R 3.5上的SF找不到与gdal相似的正确版本,但其解决方案涉及在conda之外安装。我在Ubuntu上。

如何sf识别gdal已安装的正确版本

编辑:sessionInfo()R节目中:

R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1

从conda安装R时遇到另一个问题

编辑:通过从conda安装R时conda install -c r r,出现此错误:

-----Error: libudunits2.a not found-----
     If the udunits2 library is installed in a non-standard location,
     use --configure-args='--with-udunits2-lib=/usr/local/lib' for example,
     or --configure-args='--with-udunits2-include=/usr/include/udunits2'
     replacing paths with appropriate values for your installation.
     You can alternatively use the UDUNITS2_INCLUDE and UDUNITS2_LIB
     environment variables.
     If udunits2 is not installed, please install it.
     It is required for this package.

这仍然是在安装后的情况udunits,并udunits2从畅达:

conda install -c conda-forge udunits
conda install -c conda-forge udunits2
马克斯·吉尼斯(Max Ghenis)

错误是由非conda软件包安装引起的。在干净的环境中,sf可以直接从conda以下位置安装软件包

conda create -n rsf -c conda-forge r-sf
source activate rsf

或在干净的环境中:

conda install -c conda-forge r-sf

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在macOS上更新Gdal后安装R软件包SF 0.9.0时出错

如何在CentOS 6.8上安装SF R的软件包或GDAL

在Centos上安装R'sf'软件包-gdal共享库错误

错误:安装R相关软件包时未找到gdal-config,但已安装gdal

使用apt在安装后从Stretch DVD 2和3安装Debian软件包?

损坏的 libsdl2-2.0-0 软件包会阻止软件/内核更新

安装R3.3的udunits2软件包

为django-location-field和python3安装gdal软件包

点安装与Python版本不兼容的软件包

安装软件包后,盖茨比上出现意外字符'@'(1:0)

使用conda安装gdal吗?

RPM正在跳过软件包。需要安装2个架构版本

我可以使用pip在Python 3中安装Python 2软件包吗?

使用Ansible而不是pip2安装pip3软件包

无法在centOS 7.0 64位上安装git2r或devtools R软件包

安装软件包后,Conda冲突无法解决

通过 conda 安装软件包后出现导入错误

如何在Windows 2012 R2 Core上的代理后面安装Chocolatey软件包?

在Amazon Linux EC2实例上安装R软件包

如何在离线服务器上安装H2O R软件包?

在R中安装软件包“ RGtk2”和“ rattle”时出错

R的h2oEnsemble软件包安装错误

R即使在安装软件包后也找不到软件包

R软件包未检测到GDAL的更新版本

错误conda.core.link:_execute(502):安装软件包'conda-forge :: astor-0.7.1-py_0'时发生错误

anaconda / conda-安装特定的软件包版本

如何安装特定版本的conda软件包?

安装新的Julia版本后如何转移软件包?

R版本3.1.1的R软件包安装问题