Shiny-Server上のアプリをホストするためのUbuntu 12.04に光沢のある依存関係をインストールするトラブル。

StackOverflow https://stackoverflow.com//questions/23047700

  •  21-12-2019
  •  | 
  •  

質問

簡単なヒストグラムアプリのために私のアプリアドレスにアクセスすると、次のエラーが発生します。

エラーが発生しました

アプリケーションの起動に失敗しました。

初期化中に出射した。

EVAL(EXPR、ENVING、ENCLOS)のエラー:光沢のあるパッケージが見つかりませんでした 図書館で。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
.

役に立ちましたか?

解決

JDHARRISSのアドバイスに従ってCodeToolsパッケージをインストールした後、私はShinyのインストールを再試行してから、RJSONIOの再インストールに必要なと述べました。それから私はRJSONIOをインストールして、また光沢のあるインストールを試みました。今、それは私にパッケージのキャストゥールを求めています。私がキャチオールをインストールするとき、それは義母を求めます。その後、キャストゥールをもう一度インストールしてみて、パッケージダイジェストが必要です。私はそれをインストールし、もう一度やり直してxtableを尋ねます。私はXtableをインストールして、そして今や光沢のあるインストール!今光沢のあるサーバーが機能しています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top