在 Linux 上的 Azure 上部署 R (centos 8.2.2004)
Posted
技术标签:
【中文标题】在 Linux 上的 Azure 上部署 R (centos 8.2.2004)【英文标题】:Deploy R on Azure on Linux (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”的退出状态非零
【参考方案1】:
我终于解决了这个问题。有必要删除文件夹:
sudo rm -rf /usr/lib64/R/library/00LOCK-Rcpp
然后再次尝试安装闪亮的包并且工作正常。
【讨论】:
以上是关于在 Linux 上的 Azure 上部署 R (centos 8.2.2004)的主要内容,如果未能解决你的问题,请参考以下文章
哪个是基于NodeJS的Azure Web App(Linux)上运行的默认Web服务器?