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

build issue on ubuntu xenial #12

Open
epicfarmer opened this issue Sep 22, 2016 · 2 comments
Open

build issue on ubuntu xenial #12

epicfarmer opened this issue Sep 22, 2016 · 2 comments

Comments

@epicfarmer
Copy link

The Makefile given did not work even after installing the libraries (via apt). By switching all linking to dynamic, and adding -llapacke and -lm, I got the installation to go through. The end result was modifying line 2 of src/makefile to:

LDLIBS += -lgfortran -lrt -Wl,-Bdynamic -fopenmp -llapacke -llapack -lgsl -lopenblas -lm

@kgalinsky
Copy link
Contributor

kgalinsky commented Sep 22, 2016

You can actually just get rid of the "-Wl,-Bdynamic " entirely if you are dynamically linking things. I made the Makefile statically link things because the distributed EIGENSOFT package (https://www.hsph.harvard.edu/alkes-price/software/) is meant to statically link things so people don't need gsl/openblas installed on the system. The trade-off is that it's a PITA to compile for others. I should probably add "DYNAMIC" and/or "STATIC" flags into the Makefile that will set LDLIBS accordingly.

@epicfarmer
Copy link
Author

Ah, I see. Maybe even just something in the readme saying that its a potential problem to run into.

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