OHDSI Home | Forums | Wiki | Github

Installing cyclops on gnu linux

Hi,
I’m not at all experienced with Rcpp, but to install cyclops I went through everything in this post: Can not install Cyclops on Mac 10.8

At first it wasn’t compiling. I had to change my compiler to gcc-6.1 and edited my makevars file (~/.R/Makevars) as below, so i could install Rcpp from source as suggested, and after I changed this , it allowed cyclops to compile.

$ cat ~/.R/Makevars
CC=/software/gcc-6.1-el6-x86_64/bin/gcc 
CXX=/software/gcc-6.1-el6-x86_64/bin/g++
CXX1X=/software/gcc-6.1-el6-x86_64/bin/g++ 
CXX_STD=CXX11
CXX11STD= -std=c++11
LD_LIBRARY_PATH=/software/gcc-6.1-el6-x86_64/lib64:$LD_LIBRARY_PATH

However, after the compilation, I get the same error, below, whether I do install_github() or install() from the downloaded zip directory:

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, …) :
unable to load shared object ‘/home/melamed/bin/R/Cyclops/libs/Cyclops.so’:
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by /home/melamed/bin/R/Cyclops/libs/Cyclops.so)
Error: loading failed

Thank you if anyone knows what I’m doing wrong!
Rachel

hmm… sometimes posting a question on a forum has magical effects. After hours of half-baked googling, I fixed it by setting these variables,

export LD_LIBRARY_PATH=/software/gcc-6.1-el6-x86_64/lib:/software/gcc-6.1-el6-x86_64/lib64:$LD_LIBRARY_PATH
export LD_RUN_PATH=/software/gcc-6.1-el6-x86_64/lib:/software/gcc-6.1-el6-x86_64/lib64:$LD_RUN_PATH
t