Error installing packages: ranger
install.packages("ranger", type = "source")
Installing package into ‘/home/notebook/spark-1.6.0-bin-hadoop2.6/R/lib’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/ranger_0.5.0.tar.gz'Content type 'application/x-gzip' length 95747 bytes (93 KB)
downloaded 93 KB
- installing source package ‘ranger’ ... ** package ‘ranger’ successfully unpacked and MD5 sums checked ** libs g++ -I/usr/share/R/include -DNDEBUG -DRBUILD -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-NmmxMb/r-base-3.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -DFORTIFYSOURCE=2 -g -c AAAcheckcpp11.cpp -o AAAcheckcpp11.o AAAcheckcpp11.cpp:3:2: error: #error Error: ranger requires a real C++11 compiler. You probably have to update gcc. #error Error: ranger requires a real C++11 compiler. You probably have to update gcc. ^ /usr/lib/R/etc/Makeconf:141: recipe for target 'AAAcheckcpp11.o' failed make: *** [AAAcheck_cpp11.o] Error 1 ERROR: compilation failed for package ‘ranger’
- removing ‘/home/notebook/spark-1.6.0-bin-hadoop2.6/R/lib/ranger’ Warning in install.packages : installation of package ‘ranger’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp9pmAW7/downloaded_packages’
1
vote
Tiger Ren
shared this idea
completed
·
AdminLeon Katsnelson
(Director & CTO, IBM Analytics Emerging Technology, Cognitive Class Labs)
responded
I am happy to report that we addressed the compiler issue and ranger and other packages requiring g++ compiler can now be installed in RStudio
-
Tiger Ren commented
I was trying to install ranger package on Rstudio on Datascientistworkbench when the error poped up.