【问题标题】:Trouble installing shiny dependencies on ubtuntu 12.04 to host apps on shiny-server.在 ubuntu 12.04 上安装闪亮依赖项以在闪亮服务器上托管应用程序时遇到问题。
【发布时间】:2014-05-27 16:21:18
【问题描述】:

当我转到我的应用地址以获取一个简单的直方图应用时,我收到以下错误:

发生错误

应用程序启动失败。

应用程序在初始化期间退出。

eval(expr, envir, enclos) 中的错误:未找到 Shiny 包 在图书馆。确保 Shiny 已安装并且在 您运行此应用程序的用户库。来电:本地 -> eval.parent -> eval -> eval -> eval -> eval 执行停止

所以我尝试重新安装闪亮的包,我收到这条消息,我无法将其解释为下一步行动。也许我需要明确安装依赖项?

xxxxxxxxxxxx:~$ sudo su - \
>   -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""

R version 3.1.0 RC (2014-04-05 r65382) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages('shiny', repos='http://cran.rstudio.com/')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘Rcpp’, ‘httpuv’

trying URL 'http://cran.rstudio.com/src/contrib/Rcpp_0.11.1.tar.gz'
Content type 'application/x-gzip' length 2003515 bytes (1.9 Mb)
opened URL
==================================================
downloaded 1.9 Mb

trying URL 'http://cran.rstudio.com/src/contrib/httpuv_1.3.0.tar.gz'
Content type 'application/x-gzip' length 423739 bytes (413 Kb)
opened URL
==================================================
downloaded 413 Kb

trying URL 'http://cran.rstudio.com/src/contrib/shiny_0.9.1.tar.gz'
Content type 'application/x-gzip' length 958658 bytes (936 Kb)
opened URL
==================================================
downloaded 936 Kb

* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c Date.cpp -o Date.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c Module.cpp -o Module.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c Rcpp_init.cpp -o Rcpp_init.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c api.cpp -o api.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c attributes.cpp -o attributes.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/     -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -g  -c barrier.cpp -o barrier.o
g++ -shared -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/Rcpp/libs
** R
** inst
** preparing package for lazy loading
Error : package ‘codetools’ was built before R 3.0.0: please re-install it
Error : unable to load R code in package ‘Rcpp’
ERROR: lazy loading failed for package ‘Rcpp’
* removing ‘/usr/local/lib/R/site-library/Rcpp’
ERROR: dependency ‘Rcpp’ is not available for package ‘httpuv’
* removing ‘/usr/local/lib/R/site-library/httpuv’
ERROR: dependency ‘httpuv’ is not available for package ‘shiny’
* removing ‘/usr/local/lib/R/site-library/shiny’

The downloaded source packages are in
    ‘/tmp/RtmpRLRUsk/downloaded_packages’
Warning messages:
1: In install.packages("shiny", repos = "http://cran.rstudio.com/") :
  installation of package ‘Rcpp’ had non-zero exit status
2: In install.packages("shiny", repos = "http://cran.rstudio.com/") :
  installation of package ‘httpuv’ had non-zero exit status
3: In install.packages("shiny", repos = "http://cran.rstudio.com/") :
  installation of package ‘shiny’ had non-zero exit status

【问题讨论】:

标签: r ubuntu-12.04 shiny-server


【解决方案1】:

按照jdharrison的建议安装codetools包后,我重试安装shiny,然后说我需要重新安装RJSONIO。然后我安装了 RJSONIO 并尝试再次安装闪亮。现在它要求我提供包 caTools。当我安装 caTools 时,它会要求提供位图。然后我尝试再次安装 caTools,它需要包摘要。我安装它,再次尝试闪亮,它要求 xtable。我安装了 xtable,现在闪亮安装!现在闪亮的服务器正在工作。

【讨论】:

  • 天啊。谢谢。这已经让我发疯了 2 天!
  • 太棒了!如果您有任何其他问题,请给我发电子邮件。看起来我们可能正试图跨越相同的概念。
猜你喜欢
  • 2021-03-05
  • 1970-01-01
  • 2017-10-02
  • 2018-10-19
  • 2016-08-01
  • 2014-08-09
  • 2018-09-13
  • 2014-05-06
  • 2016-05-23
相关资源
最近更新 更多