====== Install shiny server on Godaddy cloud server ======
I am trying out the Goddy cloud server with the following specific:
20GB
No more than
$5.00 /month
($0.0074 /hour)
512MB memory
1 core processor
20GB SSD disk
1TB transfer
However, when I install the shiny package, I got the following error message
''g++: internal compiler error: Killed (program cc1plus)''
It turned out there was enough memory on the server. I was able to solve the problem by temporarily adding a larger swap file using the method discussed here: http://lacey.se/posts/compiling-dplyr-on-low-memory-vps/
To do it, use the following script
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Then, install the package using
CXXFLAGS="-g -O2 --param ggc-min-expand=0 --param ggc-min-heapsize=8192" sudo su - -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
{{tag>}}
~~LINKBACK~~
~~DISCUSSION~~