The RCE is built with stability in mind. If you need a newer version of GCC or similar development tools, we offer Devtoolset via Software Collections. You can enable the tools from a Terminal:
scl enable devtoolset-4 bash
If you need these tools available on the cluster (e.g. to compile an R package) start an RCE Shell from the Applications > RCE Powered Applications menu. From there, enable the devtoolset as above, then call the appropriate statistical application (e.g. R
, xstata-mp
, etc.). When you've finished, type exit
.
For a full list of updated packages provided by devtoolset-*, please see http://mirror.centos.org/centos/6/sclo/x86_64/rh/devtoolset-4/.
Below are a couple of examples of using the Software Collections Developer Toolset:
Install R package xgboost
Installing "xgboost" requires compilation using a newer version of GCC than is supported by default on the RCE. However, you can enable the software collections developer tools to use a newer version of GCC.
- In ~/.R/, create a file named Makevars
with these contents:
CXX14 = g++ -std=c++1y
CXX14FLAGS += -fPIC
- Start an RCE Powered Shell and enter the following
scl enable devtoolset-4 bash
R #or rstudio - these both work
chooseCRANmirror(81)
# I pick 72 here but any mirror should work
install.packages("xgboost")
-----
Install R package lme4
Installing "lme4" requires compilation using a newer version of GCC than is supported by default on the RCE. However, you can enable the software collections developer tools to use a newer version of GCC.
-Start an RCE powered shell
scl enable devtoolset-4 bash
R
chooseCRANmirror(81)
# I pick 72 here but any mirror should work
install.packages("minqa")
packageurl <- "https://cran.r-project.org/src/contrib/Archive/nloptr/nloptr_1.2.1.tar.gz"; install.packages(packageurl, repos=NULL, type="source");
install.packages("lme4")
library("lme4")