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

Install issue #62

Open
aromaze85 opened this issue Apr 17, 2020 · 2 comments
Open

Install issue #62

aromaze85 opened this issue Apr 17, 2020 · 2 comments

Comments

@aromaze85
Copy link

Hi,
I'm not sure if this is the right place to do this, as I'm not very familiar with GitHub.
I have an issue trying to install Admixtools on my Ubuntu machine.
I'm basically following the tutorial from the README.INSTAL file.
After I do "make all" I get 2 errors (probably) meaning libraries "gsl" and "openblas" can't be found:

"
gcc -L./nicksrc qp3Pop.o nicksrc/libnick.a qpsubs.o mcio.o ldsubs.o admutils.o egsubs.o regsubs.o -lgsl -lopenblas -lm -lnick -o qp3Pop
/usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lopenblas
collect2: error: ld returned 1 exit status
: recipe for target 'qp3Pop' failed
make: *** [qp3Pop] Error 1
"
I have no clue how to solve this.
Please help.

@MatthewMah
Copy link
Contributor

MatthewMah commented Apr 17, 2020

First, you have to install gsl and and openblas. The commands should be something like:

sudo apt-get install gsl-dev
sudo apt-get install openblas-dev

I don't have an Ubuntu machine available to verify these are correct. The package names may be different.

Once these are installed, try to run "make". If this fails, then you need to tell the linker where to find the gsl and openblas libraries. You can do this on the command line with something like:

make LDFLAGS="-L/usr/local/opt/openblas/lib -L/usr/local/opt/gsl/lib"

Or you can modify the Makefile.

I don't know where these libraries will be located on your machine, so the above paths are simply examples. You can find them using the standard utility find with something like:

find / "libgsl*"

@fidibidi
Copy link

FYI:
The packages you are looking for on ubuntu are:
sudo apt-get install libgsl-dev sudo apt-get install libopenblas-dev

at least these worked for me on ubuntu 18.04

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

3 participants