Closed thierrygosselin closed 4 years ago
Problem was fixed by adding PKG_LIBS = "-liconv"
to the ~/.R/Makevars
file:
CC=/usr/local/bin/gcc
CXX=/usr/local/bin/g++
CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe
CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe
PKG_CFLAGS= -O3 -Wall -pipe -pedantic -std=gnu99 -fopenmp
PKG_CXXFLAGS=-fopenmp -std=c++11
FC=/usr/local/bin/gfortran
F77=/usr/local/bin/gfortran
LDFLAGS=-L/usr/local/lib
PKG_LIBS = "-liconv"
Using
R CMD INSTALL --preclean --clean randomForestSRC
I get this error:Note below that everything else mostly works (it's not the first time I do this, and it use to work before), and openmp is supported:
checking for /usr/local/bin/gcc option to support OpenMP... -fopenmp
INFO for reproducibility:
gcc version: gcc version 9.2.0 (GCC) Makevars:
Sys.getenv("LD_LIBRARY_PATH")