FAQ - nclark-lab/RERconverge GitHub Wiki

Mac

1. Incompatible library version: RERconverge.so requires version 3.5.0 or later, but libRlapack.dylib provides version 3.4.0

  • This problem occurs on Mac system and it happens when you successfully install the package and try to load the package in R. This is because our binary package is compiled using the latest R (3.5.0, spring 2019) and your R version is 3.4.0 or earlier. There are two solutions to this problem and the first solution is highly recommended.

2. Error: package or namespace load failed for ‘RERconverge’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object RERconverge.so : symbol not found in flat namespace

  • If you came across this message when trying to install RERconverge from the GitHub repo, you may consider the following solution contributed by @amgraham07. The idea is to replace the compiler from gcc to clang in ~/.R/Makevars. The following code serves as a reference.
CFLAGS += -O3 -Wall -pipe -pedantic -std=gnu99
CXXFLAGS += -O3 -Wall -pipe -Wno-unused -pedantic
#VER=-4.6
#VER=-4.7
VER=-4.8.5
SHLIB_CXXLD=g++$(VER)
FC=ccache gfortran
F77=ccache gfortran
MAKE=make -j8
#CC=ccache gcc$(VER)
#CXX=ccache g++$(VER)
CXX=clang++
CC=clang

Win

1. ERROR: loading failed for 'i386'