简体   繁体   English

library.dynam 中的错误(lib,package,package.lib)共享对象<library_name> .所以没找到</library_name>

[英]error in library.dynam(lib, package, package.lib) shared ovject <library_name>.so not found

Using VirtualBox with Ubuntu 20LTS, and attempting to install and load R packages, getting the error:使用带有 Ubuntu 20LTS 的 VirtualBox,并尝试安装和加载 R 包,得到错误:

error in library.dynam(lib, package, package.lib)
shared object <library_name>.so not found

Where <library_name> can be any of multiply libraries:其中 <library_name> 可以是任何乘法库:

  • rlang rlang
  • digest消化
  • fs fs
  • fansi番西

So the error looks like this:所以错误看起来像这样:

error in library.dynam(lib, package, package.lib)
shared object digest.so not found

So far, uninstalled and reinstalled the packages with install.packages() and with sudo apt-get install r-cran-.到目前为止,使用 install.packages() 和 sudo apt-get install r-cran- 卸载并重新安装了软件包。

Currently cannot use devtools to install because it too fails to load with require(devtools) saying shared object fs.so (was) not found.目前无法使用 devtools 安装,因为它也无法加载require(devtools)说 shared object fs.so (was) not found。

Please help请帮忙

Please step back a second and start from the top with a clean installation of R.退后一秒,从头开始干净安装 R。 The do该做的

sudo apt-get install r-cran-digest

and library(digest) will work.library(digest)工作。 I do not recall if fs and fansi are available for 20.04 so you will have to come to terms with source installation but even that should be easy of you have r-base-dev installed.我不记得fsfansi是否可用于 20.04,因此您必须接受源代码安装,但即使安装了r-base-dev也应该很容易。

Now, we generally strongly recommend you start from the README for Ubuntu at the CRAN repo and enable that repo.现在,我们通常强烈建议您从CRAN 存储库中 Ubuntu 的自述文件开始并启用该存储库。 Then you get R 4.2.1.然后你会得到 R 4.2.1。 If you read the part on '5000+ CRAN Packages' you can equally easily get CRAN binaries for 5000+ packages, including fs and fansi as r-cran-* binaries from the c2d4u.team repo.如果您阅读“5000+ CRAN 包”上的部分,您同样可以轻松地从 c2d4u.team 存储库获取 5000 多个包的 CRAN 二进制文件,包括fsfansi作为r-cran-*二进制文件。

Better still, I now support a project I call r2u which has all of CRAN for Ubuntu 20.04 and 22.04.更好的是,我现在支持一个我称之为r2u的项目,它包含 Ubuntu 20.04 和 22.04 的所有CRAN。 The installation is simple in five quick steps in a documented script (and detailed at the README of r2u . You then can do安装很简单,只需五个快速步骤,在一个文档化的脚本中(并在r2u 的 README 中有详细说明。然后你可以做

  install.packages(c("digest", "fs", "fansi"))

in R and get binaries in seconds as the gif below shows.在 R 中并在几秒钟内获得二进制文件,如下图所示。

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法安装ggp​​lot2:“ library.dynam(lib,package,package.lib)中的错误:找不到共享对象&#39;stringi.so&#39;” - Cannot install ggplot2: “Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found” 错误:library.dynam(lib, package, package.lib) 中“data.table”的包或命名空间加载失败:找不到共享对象“datatable.so” - Error: package or namespace load failed for ‘data.table’ in library.dynam(lib, package, package.lib): shared object ‘datatable.so’ not found 使用dyn.load或library.dynam来调用R包中的C ++函数 - use dyn.load or library.dynam to call a C++ function in an R package 安装自定义程序包时,“lib.loc”中找不到库树 - No library trees found in 'lib.loc' when installing custom package 在库“/usr/lib/R/lib/libR.so”中找不到 rpy2 错误符号“R_tryCatchError” - rpy2 error symbol 'R_tryCatchError' not found in library '/usr/lib/R/lib/libR.so' 安装 R Bioconductor package 时,'lib = "/usr/lib/R/library"' is not writable" - 'lib = "/usr/lib/R/library"' is not writable" while installing R Bioconductor package 在 Centos 上安装 R &#39;sf&#39; 包 — gdal 共享库错误 - Install R 'sf' package on Centos — gdal shared library error Python / R ctypes库错误:“ OSError:lib / libRrefblas.so:未定义符号:xerbla_” - Python/R ctypes library error: “OSError: lib/libRrefblas.so: undefined symbol: xerbla_” TwitteR r包:/usr/lib/x86_64-linux-gnu/libcurl.so.4:找不到版本`CURL_OPENSSL_3&#39; - TwitteR r package: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found 安装 RIO 包:找不到共享对象“haven.so” - Installing RIO Package : shared object ‘haven.so’ not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM