【发布时间】: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