Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu installation error and solution #48

Closed
owensgl opened this issue Jan 31, 2019 · 2 comments
Closed

Ubuntu installation error and solution #48

owensgl opened this issue Jan 31, 2019 · 2 comments
Assignees

Comments

@owensgl
Copy link

owensgl commented Jan 31, 2019

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 to dspev_'
eigx.o: In function eigxv_': /home/owens/bin/AdmixTools-5.1/src/eigx.c:118: undefined reference to dspev_'
eigx.o: In function cdc_': /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 to dgetrf_'
/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 to dgetrf_' /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 to dsygv_'
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 (DReichLab/EIG#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
Copy link
Contributor

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 MatthewMah self-assigned this Jan 31, 2019
@MatthewMah
Copy link
Contributor

README note finally added in 24e63b5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants