在 AWS EC2 ubuntu 20.4 上安装闪亮失败
Installing shiny on AWS EC2 ubuntu 20.4 fail
我一直在努力在 EC2 上的 ubuntu 20.4 虚拟机上安装 shiny。
我遵循了 this 程序。
然后我试了:
install.packages("shiny")
install.packages("shiny", dependencies = T)
install.packages("shiny", dependencies = T, INSTALL_opts ='--no-lock')
我还添加了 4GB 的 SWAP 内存。
但是没办法...
这是我的输出:
** R
** demo
** byte-compile and prepare package for lazy loading Error: package ‘promises’ was installed before R 4.0.0: please re-install it
Execution halted ERROR: lazy loading failed for package ‘httpuv’
- removing ‘/usr/local/lib/R/site-library/httpuv’ ERROR: dependency ‘openssl’ is not available for package ‘httr’
- removing ‘/usr/local/lib/R/site-library/httr’ ERROR: dependency ‘textshaping’ is not available for package ‘ragg’
- removing ‘/usr/local/lib/R/site-library/ragg’ ERROR: dependency ‘httpuv’ is not available for package ‘shiny’
- removing ‘/usr/local/lib/R/site-library/shiny’ ERROR: dependency ‘httr’ is not available for package ‘webdriver’
- removing ‘/usr/local/lib/R/site-library/webdriver’ ERROR: dependencies ‘httr’, ‘shiny’, ‘webdriver’, ‘httpuv’ are not available
for package ‘shinytest’
- removing ‘/usr/local/lib/R/site-library/shinytest’
The downloaded source packages are in
‘/tmp/RtmpGvP9AB/downloaded_packages’ Warning messages: 1: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘openssl’ had non-zero exit status 2: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘textshaping’ had non-zero exit status 3: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘httpuv’ had non-zero exit status 4: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘httr’ had non-zero exit status 5: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘ragg’ had non-zero exit status 6: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘shiny’ had non-zero exit status 7: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘webdriver’ had non-zero exit status 8: In
install.packages("shiny", dependencies = TRUE) : installation of
package ‘shinytest’ had non-zero exit status
每次我尝试“手动”安装一个依赖项时,都会出现另一个缺失的、嵌套更深的依赖项。
有人可以帮我解决这个问题吗?
要安装 openssl R 包,您还需要在系统范围内安装同名包。你可以尝试像 sudo apt-get install openssl
这样的东西。在互联网上搜索其他软件包的依赖项。
不确定您是否能够解决您的问题。最近我在尝试在 EC2 中安装 Shiny 服务器和相关包时也遇到了类似的问题。我进行了一些研究,发现了一个由 Louis Aslett 维护的 Rstudio 服务器 AMI(Amazon Machine Image)- https://www.louisaslett.com/RStudio_AMI/。您可以从最近的区域选择 AMI,一旦实例启动并且 运行,您就可以直接开始使用 R-studio 或 Shiny。我觉得很有帮助。
我一直在努力在 EC2 上的 ubuntu 20.4 虚拟机上安装 shiny。 我遵循了 this 程序。 然后我试了:
install.packages("shiny")
install.packages("shiny", dependencies = T)
install.packages("shiny", dependencies = T, INSTALL_opts ='--no-lock')
我还添加了 4GB 的 SWAP 内存。
但是没办法...
这是我的输出:
** R ** demo ** byte-compile and prepare package for lazy loading Error: package ‘promises’ was installed before R 4.0.0: please re-install it Execution halted ERROR: lazy loading failed for package ‘httpuv’
- removing ‘/usr/local/lib/R/site-library/httpuv’ ERROR: dependency ‘openssl’ is not available for package ‘httr’
- removing ‘/usr/local/lib/R/site-library/httr’ ERROR: dependency ‘textshaping’ is not available for package ‘ragg’
- removing ‘/usr/local/lib/R/site-library/ragg’ ERROR: dependency ‘httpuv’ is not available for package ‘shiny’
- removing ‘/usr/local/lib/R/site-library/shiny’ ERROR: dependency ‘httr’ is not available for package ‘webdriver’
- removing ‘/usr/local/lib/R/site-library/webdriver’ ERROR: dependencies ‘httr’, ‘shiny’, ‘webdriver’, ‘httpuv’ are not available for package ‘shinytest’
- removing ‘/usr/local/lib/R/site-library/shinytest’
The downloaded source packages are in ‘/tmp/RtmpGvP9AB/downloaded_packages’ Warning messages: 1: In install.packages("shiny", dependencies = TRUE) : installation of package ‘openssl’ had non-zero exit status 2: In install.packages("shiny", dependencies = TRUE) : installation of package ‘textshaping’ had non-zero exit status 3: In install.packages("shiny", dependencies = TRUE) : installation of package ‘httpuv’ had non-zero exit status 4: In install.packages("shiny", dependencies = TRUE) : installation of package ‘httr’ had non-zero exit status 5: In install.packages("shiny", dependencies = TRUE) : installation of package ‘ragg’ had non-zero exit status 6: In install.packages("shiny", dependencies = TRUE) : installation of package ‘shiny’ had non-zero exit status 7: In install.packages("shiny", dependencies = TRUE) : installation of package ‘webdriver’ had non-zero exit status 8: In install.packages("shiny", dependencies = TRUE) : installation of package ‘shinytest’ had non-zero exit status
每次我尝试“手动”安装一个依赖项时,都会出现另一个缺失的、嵌套更深的依赖项。
有人可以帮我解决这个问题吗?
要安装 openssl R 包,您还需要在系统范围内安装同名包。你可以尝试像 sudo apt-get install openssl
这样的东西。在互联网上搜索其他软件包的依赖项。
不确定您是否能够解决您的问题。最近我在尝试在 EC2 中安装 Shiny 服务器和相关包时也遇到了类似的问题。我进行了一些研究,发现了一个由 Louis Aslett 维护的 Rstudio 服务器 AMI(Amazon Machine Image)- https://www.louisaslett.com/RStudio_AMI/。您可以从最近的区域选择 AMI,一旦实例启动并且 运行,您就可以直接开始使用 R-studio 或 Shiny。我觉得很有帮助。