Проблемы с установкой блестящих зависимостей на Ubuntu 12.04 для размещения приложений на блестящем сервере.

Когда я перехожу по адресу своего приложения для простого приложения гистограммы, я получаю следующую ошибку:

произошла ошибка

Приложение не удалось запустить.

Приложение завершило работу во время инициализации.

Ошибка в eval(expr, envir, enclos): Пакет Shiny не найден в библиотеке. Убедитесь, что Shiny установлен и доступен в библиотеке пользователя, от имени которого вы запускаете это приложение. Вызовы: local -> 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

person cylondude    schedule 13.04.2014    source источник
comment
Вы можете получить более быстрый ответ на подобные вопросы в блестящих списках рассылки Google по сравнению с SO. groups.google.com/forum/#!forum/shiny-discuss   -  person FXQuantTrader    schedule 14.04.2014
comment
Попробуйте переустановить codetools cran.r-project.org/web/packages/codetools /index.html   -  person jdharrison    schedule 14.04.2014
comment
Спасибо. Пожалуйста, смотрите мой ответ.   -  person cylondude    schedule 14.04.2014


Ответы (1)


После установки пакета codetools в соответствии с советом jdharrison я повторил попытку установки блестящего, а затем заявил, что мне нужно переустановить RJSONIO. Затем я установил RJSONIO и снова попытался установить блестящий. Теперь он просит у меня пакет caTools. Когда я устанавливаю caTools, он запрашивает биттопы. Затем я снова пытаюсь установить caTools, и мне нужен дайджест пакета. Я устанавливаю это, снова пытаюсь блестеть, и он запрашивает xtable. Я устанавливаю xtable и теперь блестящие установки! теперь блестящий сервер работает.

person cylondude    schedule 13.04.2014
comment
МОЙ БОГ. Спасибо. Это сводило меня с ума уже 2 дня! - person felixmc; 25.06.2014
comment
Потрясающий! Напишите мне, если у вас возникнут другие проблемы. Похоже, мы пытаемся преодолеть одни и те же понятия. - person cylondude; 25.06.2014