Objectives
While trying to build R-4.0.3 from source files, I noticed some requirements needed more than what I used for R-3.x.x. I hope some readers find this article useful for using R.
Index
. Platforms/OS's
. Prerequisites
. Variables
. Configurations
. References
Platforms/OS's
. RHEL7 and SLES 15.
Prerequisites
. Intel Compilers
. GCC Compilers
. TeX Live
. Texinfo
. PCRE2
. Cairo
Variables
export CC=icc
export F77=ifort
export CXX=icpc
export F90=ifort
export FC=ifort
export AR=xiar
export LD=xild
export MKL="-lmkl*gf*lp64 -lmkl*core -lmkl*gnu**thread -dl -lpthread"
export PATH=/dir1/texlive/bin:/dir1/texinfo/6.6/bin:/dir1/pcre2/bin:$PATH
export LD_LIBRARY_PATH=/dir1/texinfo/lib/texinfo:/dir1/zlib/lib:/dir1/bzip2/lib:/dir1/xz/lib:/dir1/pcre2/lib:/dir1/cairo/lib:/usr/lib64:/lib64:$LD_LIBRARY_PATH
export LDFLAGS="-L/dir1/zlib/lib -L/dir1/bzip2/lib -L/dir1/xz/lib -L/dir1/pcre2/lib -L/dir1/cairo/lib -lcairo"
export CFLAGS="-I/dir1/zlib/include -I/dir1/bzip2/include -I/dir1/xz/include -I/dir1/pcre2/include -I/usr/include"
export CPPFLAGS="-I/dir1/pcre2/include"
Configurations
./configure --prefix=/dir2/r/4.0.3 --with-blas=-lmkl_rt -with-lapack=-lmkl_rt --enable-memory-profiling --with-x --with-cairo --with-libpng --with-jpeglib --with-recommended-packages=no --enable-R-shlib