I am attempting to install Shiny and Shiny Server on a CentOS 7 box, and I appear to be running into some sort of permission issue.
I am using the command below to attempt to install the Shiny Package:
sudo su - \ -c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""
It fails at some point while compiling/installing the httpuv package, which apparently is a dependency of Shiny:
/bin/sh: line 4: ./configure: Permission denied make: *** [libuv/Makefile] Error 126 ERROR: compilation failed for package ‘httpuv’ * removing ‘/usr/lib64/R/library/httpuv’ ERROR: dependency ‘httpuv’ is not available for package ‘shiny’ * removing ‘/usr/lib64/R/library/shiny’ The downloaded source packages are in ‘/tmp/RtmpDcoZsU/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning messages: 1: In install.packages("shiny", repos = "https://cran.rstudio.com/") : installation of package ‘httpuv’ had non-zero exit status 2: In install.packages("shiny", repos = "https://cran.rstudio.com/") : installation of package ‘shiny’ had non-zero exit status
Obviously, there is some sort of permission issue when compiling the httpuv package, but I am not sure what the solution is. Any ideas on how I may be able to solve this issue and install the Shiny package?