【问题标题】:Deploy R on Azure on Linux (centos 8.2.2004)在 Linux 上的 Azure 上部署 R (centos 8.2.2004)
【发布时间】:2021-03-03 04:06:58
【问题描述】:

我正在尝试在 Azure、Linux (centos 8.2.2004) 上安装 R Shiny。使用手册:https://linuxize.com/post/how-to-install-r-on-centos-7/

但是我无法安装软件包。我收到错误:

"ERROR: failed to lock directory ‘/usr/lib64/R/library’ for modifying Try removing ‘/usr/lib64/R/library/00LOCK-Rcpp’ ERROR: dependency ‘Rcpp’ is not available for package ‘later’
* removing ‘/usr/lib64/R/library/later’ ERROR: dependencies ‘Rcpp’, ‘later’ are not available for package ‘promises’
* removing ‘/usr/lib64/R/library/promises’ ERROR: dependencies ‘Rcpp’, ‘promises’, ‘later’ are not available for package ‘httpuv’
* removing ‘/usr/lib64/R/library/httpuv’ ERROR: dependencies ‘httpuv’, ‘later’, ‘promises’ are not available for package ‘shiny’
* removing ‘/usr/lib64/R/library/shiny’

The downloaded source packages are in
        ‘/tmp/RtmpGIfMqF/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning messages: 1: In install.packages("shiny") :   installation of package ‘Rcpp’ had non-zero exit status 2: In install.packages("shiny") :   installation of package ‘later’ had non-zero exit status 3: In install.packages("shiny") :   installation of package ‘promises’ had non-zero exit status 4: In install.packages("shiny") :   installation of package ‘httpuv’ had non-zero exit status 5: In install.packages("shiny") :   installation of package ‘shiny’ had non-zero exit status"

我已经尝试解决这个问题,但是,能够。如果您有什么想法,请指教,谢谢。

【问题讨论】:

  • 无法安装包Rcpp。我的第一次尝试是尝试自行安装:install.packages("Rcpp"),如果这不起作用,请查看它会生成哪些错误消息
  • 嗨,我试过但是有错误:在 install.packages("Rcpp") 中:安装包“Rcpp”的退出状态非零

标签: r deployment centos shiny-server


【解决方案1】:

我终于解决了这个问题。有必要删除文件夹:

sudo rm -rf /usr/lib64/R/library/00LOCK-Rcpp

然后再次尝试安装闪亮的包并且工作正常。

【讨论】:

    猜你喜欢
    • 2023-03-14
    • 1970-01-01
    • 2016-12-20
    • 2017-10-14
    • 2021-08-17
    • 2017-05-07
    • 1970-01-01
    • 2019-03-09
    • 1970-01-01
    相关资源
    最近更新 更多