首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS install R package RLumShiny失败

CentOS install R package RLumShiny失败
EN

Stack Overflow用户
提问于 2021-10-30 14:03:00
回答 1查看 72关注 0票数 0

我尝试在服务器上安装闪亮的相关包RLumShiny。系统版本: CentOS Linux版本8.1.1911 (核心)

我试着使用:

代码语言:javascript
复制
install.packages("RLumShiny")

返回了一些错误。但我现在找不到这些错误。

然后我试着使用:

代码语言:javascript
复制
wget https://cran.r-project.org/bin/macosx/contrib/4.1/RLumShiny_0.2.2.tgz
R CMD INSTALL RLumShiny_0.2.2.tgz
R
library("RLumShiny")

服务器报告错误:

代码语言:javascript
复制
>library(RLumShiny)
Error: package or namespace load failed for ‘RLumShiny’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/terra/libs/terra.so':
  /home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/terra/libs/terra.so: invalid ELF header

然后我试着:

代码语言:javascript
复制
>install.packages("RLumShiny")
Installing package into ‘/home/shiny/R/x86_64-redhat-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
try open URL'https://mirror-hk.koddos.net/CRAN/src/contrib/RLumShiny_0.2.2.tar.gz'
Content type 'application/x-gzip' length 448539 bytes (438 KB)
==================================================
downloaded 438 KB

installing *source* package ‘RLumShiny’ ...
package ‘RLumShiny’ successfully unpacked and MD5 sums checked
using staged installation
R
inst
byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/terra/libs/terra.so':
  /home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/terra/libs/terra.so: invalid ELF header
Calls: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘RLumShiny’
* removing ‘/home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/RLumShiny’
* restoring previous ‘/home/shiny/R/x86_64-redhat-linux-gnu-library/4.1/RLumShiny’

The downloaded source packages are in
    ‘/tmp/RtmpZxd0sL/downloaded_packages’
Warning message:
In install.packages("RLumShiny") :
  installation of package ‘RLumShiny’ had non-zero exit status

如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-10-30 19:36:58

问题很明显出在terra包上。因此,修复它的方法是首先(重新)安装该软件包;也许在安装它的系统要求(参见repo)之后,可能使用以下命令

sudo dnf install gdal-devel proj-devel geos-devel sqlite-devel

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69780341

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档