Report this

What is the reason for this report?

Problems installing shiny

Posted on December 21, 2015

Hello, I am trying to install shiny and having issues with its dependencies. My server is an Ubuntu 14.04 using nginx as the web server. When I run the statement sudo su - -c “R -e "install.packages(‘shiny’, repos=‘http://cran.rstudio.com/’)"” at the command line, it starts to work. Here is the info that is returned when attempting to install.

  • 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 -Werror=format-security -D_FORTIFY_SOURCE=2 -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 -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Module.cpp -o Module.o g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. make: *** [Module.o] Error 4 ERROR: compilation 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/RtmpduxxBi/downloaded_packages’ Warning messages: 1: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘Rcpp’ had non-zero exit status 2: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘httpuv’ had non-zero exit status 3: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘shiny’ had non-zero exit status

So it appears two of the dependencies (Rcpp and httpuv), so far, while unpacking are not installing.

Does anyone know what may be causing this and even better, how to fix this issue? Thank you in advance for any solutions!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @homerhanumat:

It looks like you ran out of memory while compiling some of the C code for Rcpp. You should temporarily increase the size of your droplet. I have found that 1G is not enough memory to install all of my favorite R packages, but the 2G size will do. Alternatively, you can make a swap file. For that, follow the direction here; http://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/

I chose the latter option, and it worked fine.

Regards, Homer

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.