ZikunY / CARMA

GWAS genetics Fine-mapping method
GNU General Public License v3.0
20 stars 7 forks source link

Error at loading the package #6

Closed stepanv1 closed 1 year ago

stepanv1 commented 1 year ago

Hello! Istallation goes successfully. Attempting loading the library I get this: library("CARMA") Error: package or namespace load failed for ‘CARMA’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/stepangrinek/R/x86_64-pc-linux-gnu-library/4.1/CARMA/libs/CARMA.so': /home/stepangrinek/R/x8664-pc-linux-gnu-library/4.1/CARMA/libs/CARMA.so: undefined symbol: dsyevd

Can you help?

hlnicholls commented 1 year ago

I ran into this error and following some of the steps that resolved a another issue worked for me. Not sure why though. At any rate, if it's helpful, I resolved my CARMA.so: undefined symbol: dsyevd_ error by checking the Intel MLK installation instructions (in https://csantill.github.io/RPerformanceWBLAS/) and in particular this line, followed by re-running installation, solved it:

sudo apt-get install libopenblas-base libatlas3-base
ZikunY commented 1 year ago

@hlnicholls Thanks for the input. Please let me know if the error remains.

hbliu commented 1 year ago

I also have a similar loading error "CARMA.so: undefined symbol: dgetrf_". This issue was solved by installing Intel MLK via Conda and then changing BLAS/LAPACK by LD_PRELOAD when starting R.

conda install -c anaconda mkl
LD_PRELOAD=pathto/anaconda3/lib/libmkl_rt.so R
devtools::install_github("ZikunY/CARMA")

Wish this will be helpful.

ZikunY commented 1 year ago

@hbliu Hi Hongbo,

Thank you so much for this help! I will add these solutions to the vignette accordingly. Really appreciate it.

Best, Zikun