2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Installing R-4.0.3 from source

Posted at

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

References

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?