Closed Ojami closed 5 years ago
SOLVED:
It turned out that the problem was due to savvy
. So after installation of savvy , SAIGE was successfully installed using:
devtools::install_github("weizhouUMICH/SAIGE")
@Ojami could you please specify what is savvy and how to install it? Thanks very much!
Best,
Yiming
Dear Yiming,
My problem was savvy which is one of SAIGE dependencies. I didn't have cmake for building savvy, and that's why I was getting errors. Please note that I'm using Ubuntu under windows 10 (WSL), so my Linux subsystem didn't have cmake. If this is the case also for you, you can install (or upgrade) cmake using this link.
Also don't forget to install cget on your system using pip (which is already on SAIGE installation page).
sudo -H pip install cget
After that, you can simply install SAIGE in R:
devtools::install_github("weizhouUMICH/SAIGE")
Best/Oveis
@Ojami Thanks for your help!
Best,
Yiming
Hi
I've followed the instructions here (https://github.com/weizhouUMICH/SAIGE/wiki/Genetic-association-tests-using-SAIGE#installing-saige) to install SAGE. I am using windows 10, and have Ubuntu under windows.
When I go into R (3.6.1), and typing:
library(SAIGE)
I get the following error:
devtools::install_github("weizhouUMICH/SAIGE")
and got the following error (only copied the last parts):R CMD INSTALL SAIGE
** libs g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o SAIGE.so RcppExports.o test.o matrixMultiEigen.o SAIGE_fitGLMM_fast.o SAIGE_readDosage_bgen.o SAIGE_readDosage_plain.o SAIGE_readDosage_vcf.o SAIGE_GENE_readDosageMatrix_vcf.o ../thirdParty/bgen/build/src/MissingValue.cpp.2.o ../thirdParty/bgen/build/src/bgen.cpp.2.o ../thirdParty/bgen/build/src/zlib.cpp.2.o ../thirdParty/bgen/build/src/IndexQuery.cpp.2.o ../thirdParty/bgen/build/src/View.cpp.2.o ../thirdParty/bgen/build/db/libdb.a ../thirdParty/bgen/build/3rd_party/zstd-1.1.0/libzstd.a ../thirdParty/bgen/build/3rd_party/sqlite3/libsqlite3.a ../thirdParty/bgen/build/3rd_party/boost_1_55_0/libboost.a -llapack -lblas -lgfortran -lm -lquadmath -L../bgen/3rd_party/boost_1_55_0/boost/iostreams -lboost_iostreams -L../thirdParty/cget/lib/ -L../thirdParty/cget/lib64/ -lsavvy -lhts -lsuperlu -L/usr/lib/R/lib -lR /usr/bin/ld: cannot find -lsavvy /usr/bin/ld: cannot find -lhts /usr/bin/ld: cannot find -lsuperlu collect2: error: ld returned 1 exit status /usr/share/R/share/make/shlib.mk:6: recipe for target 'SAIGE.so' failed make: *** [SAIGE.so] Error 1 ERROR: compilation failed for package ‘SAIGE’
So, can you please let me know what's wrong?
Thanks in advance Oveis