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.
I was trying to install v5.1 on a ubuntu system and I kept getting this error:
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.