So I've definitely previously installed packages from CRAN before in R with no issue. One of the earliest pleasures of using Solus was that R worked seamlessly for me right out of the box. (I cannot say the same for other ill-fated attempts with different distros.) However, it seems like something has recently changed, and as I struggle with R already, I could certainly benefit from some advice.
I just tried to install a package from CRAN, and this was the first error I ran into…
* installing *source* package ‘bitops’ ...
** package ‘bitops’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: make: command not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘bitops’
* removing ‘/home/n1x3l/R/x86_64-solus-linux-gnu-library/3.6/bitops’
Warning in install.packages :
installation of package ‘bitops’ had non-zero exit status
Okay, that's weird — but I go install GNU's make through the Solus Software Center. This isn't something I've ever had to do before, but I'm trying to finish this analysis before passing out for the night, so let's give it that old college try. This lets me advance one step further before encountering my next error, output as follows…
* installing *source* package ‘bitops’ ...
** package ‘bitops’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-solus-linux-gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -mtune=generic -march=x86-64 -g2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -c bit-ops.c -o bit-ops.o
/bin/sh: x86_64-solus-linux-gcc: command not found
make: *** [/usr/lib64/R/etc/Makeconf:167: bit-ops.o] Error 127
ERROR: compilation failed for package ‘bitops’
* removing ‘/home/n1x3l/R/x86_64-solus-linux-gnu-library/3.6/bitops’
Warning in install.packages :
installation of package ‘bitops’ had non-zero exit status
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-solus-linux-g++ -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -mtune=generic -march=x86-64 -g2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -c api.cpp -o api.o
/bin/sh: x86_64-solus-linux-g++: command not found
make: *** [/usr/lib64/R/etc/Makeconf:176: api.o] Error 127
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/home/n1x3l/R/x86_64-solus-linux-gnu-library/3.6/Rcpp’
Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status
This is when it really seemed to me like something was wrong. I had successfully installed these packages previously on my laptop (also running Solus), without ever expressly installing make, gcc, or g++. I of course have libgcc installed, but perhaps that is no longer adequate? I don't understand why I suddenly can't install this package on my desktop, when I did so seamlessly on my laptop a month ago. I would appreciate any advice on how to proceed. Thank you!