RStudio - Installing Compiled Packages Error

We're seeing error when trying to install packages that require compiling eg data.toos, writexl or readxl etc. The users can install these packaged via R when they're SSH'd onto the server. However when they run the same command in the RStudio console they see:

gcc: error trying to exec 'cc1': execvp: No such file or directory
Followed by a make command which is the first file it’s trying to compile:

make: *** [write_xlsx.o] Error 1; or
make: *** [assign.o] Error 1; or
make: *** [dotsElt.o] Error 1

We definitely have gcc-c++ installed on the server and have tried to re-install to no avail. All of the information online seems to be around installing this package, but we're wondering if there's something we need to do to make this available to the RStudio Web Console?

Thanks,
Ryan

Are you using R from the system repositories, or did you compile it yourself? If so, was the C++ compiler available when you compiled R? If not, R may not understand how to compile C++ packages on your system.

You may want to double-check the output of:

conf <- file.path(R.home("etc"), "Makeconf")
writeLines(readLines(conf))

and ensure that CXX and other Make variables are properly set.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.