首页 > 解决方案 > 安装软件包时出错。错误 dyn.load(文件,DLLpath = DLLpath,...):

问题描述

我在 Linux Mint 20.1 上有 R 版本 3.6.3 和 RStudio 版本 1.4.1106。

对于我要安装的每个软件包,我几乎总是遇到相同的错误。

有人有什么主意吗?


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)

install.packages("readr")
Installiere Paket nach ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6’
(da ‘lib’ nicht spezifiziert)
installiere auch Abhängigkeit ‘hms’

versuche URL 'https://cloud.r-project.org/src/contrib/hms_1.0.0.tar.gz'
Content type 'application/x-gzip' length 42765 bytes (41 KB)
==================================================
downloaded 41 KB

versuche URL 'https://cloud.r-project.org/src/contrib/readr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 488946 bytes (477 KB)
==================================================
downloaded 477 KB

* installing *source* package ‘hms’ ...
** Paket ‘hms’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Fehler in dyn.load(file, DLLpath = DLLpath, ...) : 
  kann shared object '/usr/lib/R/site-library/rlang/libs/rlang.so' nicht laden:
  /usr/lib/R/site-library/rlang/libs/rlang.so: undefined symbol: R_removeVarFromFrame
Ruft auf: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Ausführung angehalten
ERROR: lazy loading failed for package ‘hms’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6/hms’
ERROR: dependency ‘hms’ is not available for package ‘readr’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6/readr’

Die heruntergeladenen Quellpakete sind in 
    ‘/tmp/Rtmpg1107M/downloaded_packages’
Warnmeldungen:
1: In install.packages("readr") :
  Installation des Pakets ‘hms’ hatte Exit-Status ungleich 0
2: In install.packages("readr") :
  Installation des Pakets ‘readr’ hatte Exit-Status ungleich 0

标签: r

解决方案


推荐阅读