DReichLab / AdmixTools

Tools test whether admixture occurred and more
183 stars 64 forks source link

Ubuntu installation error and solution #48

Closed owensgl closed 4 years ago

owensgl commented 5 years ago

I was trying to install v5.1 on a ubuntu system and I kept getting this error:

cc -L./nicksrc qpAdm.o nicksrc/libnick.a qpsubs.o mcio.o ldsubs.o admutils.o egsubs.o regsubs.o f4rank.o eigsubs.o eigx.o -lgsl -lopenblas -lm -lnick -o qpAdm eigx.o: In function eigx_': /home/owens/bin/AdmixTools-5.1/src/eigx.c:94: undefined reference todspev' eigx.o: In function `eigxv': /home/owens/bin/AdmixTools-5.1/src/eigx.c:118: undefined reference to dspev_' eigx.o: In functioncdc': /home/owens/bin/AdmixTools-5.1/src/eigx.c:136: undefined reference to `dpotrf' eigx.o: In function inverse_': /home/owens/bin/AdmixTools-5.1/src/eigx.c:173: undefined reference todgetrf' /home/owens/bin/AdmixTools-5.1/src/eigx.c:180: undefined reference to `dgetri' eigx.o: In function solve_': /home/owens/bin/AdmixTools-5.1/src/eigx.c:206: undefined reference todgetrf' /home/owens/bin/AdmixTools-5.1/src/eigx.c:212: undefined reference to `dgetrs' eigx.o: In function geneigsolve_': /home/owens/bin/AdmixTools-5.1/src/eigx.c:230: undefined reference todsygv_' collect2: error: ld returned 1 exit status

This happened despite installing and updating GSL, openblas, gfortran, and lapack. Based on this post about a related program (https://github.com/DReichLab/EIG/issues/8) I tried make all LDLIBS="-llapack" This seemed to fix the error, and it installed fine.

Including a note about this might be useful in the install readme, and I'm posting this issue to help anyone else with the same issue.

MatthewMah commented 5 years ago

Thanks for your note. We actually were not sure what platform(s) needed the additional flag. I will add a note to the readme.

MatthewMah commented 4 years ago

README note finally added in 24e63b568ef78ec89869544a6761e31bcaa5bc49.