Closed avkermanov closed 2 years ago
Hi,
Could you make sure GSL is installed in your system? And that htslib. You should be able to do:
sudo apt install libgsl-dev
sudo apt install libhts-dev
After running those two commands, make sure you see the proper gsl
and hts
directories in /usr/lib
and /usr/include
(or /usr/local/*
). Finally, make sure that you provide the path to the headers during the ./configure
step, like below:
../configure CPPFLAGS='-I /path/to/gsl/headers/' \
LDFLAGS='-L/path/to/gsl/lib'
Also, we recommend that you use methpipe-5.0.0, as there are substantial updates to the software.
Hi,
Thank you for suggestions. I have no sudo access on server, things are a bit tricky. I installed tools you noticed in a different folder and changed the PATH but it did not help. But installation of 5.0 version of methpipe ran smoothly. The only problem that I needed .mr files, as I designed scripts for them, but maybe it will be easier to modify my scripts then trying to force 4.1.1. version to install...
Thank you!
Hi,
I see, let me check the methpipe 4.1.1 installation. The error you are running into is the one you posted in the original comment?
On my server, I created a /usr/local/
directory somewhere and copied all of the files from the gsl
and htslib
installation files into the include/lib directories. And then put the following in my ~/.bashrc
:
export CPPFLAGS=-I/path/to/usr/local/include/:$CPPFLAGS
export LDFLAGS=-I/path/to/usr/local/lib/:$LDFLAGS
Then I run
./configure --prefix=`pwd`
in the methpipe-4.1.1
directory.
This is a bit of a complicated solution, but seems to work for me... please let me know if this works or if you have any other solutions!
Just chiming in to say that, without superuser access, you should compile GSL and HTSLib from source, then link to the lib
and include
directories for both libraries, separated by colons, using the CPPFLAGS
and LDFLAGS
like Terence mentioned.
If the problem still arises please feel free to re-open this issue.
As the similar issue was closed, I will open it here with the requested error code:
Originally posted by @avkermanov in https://github.com/smithlabcode/methpipe/issues/189#issuecomment-953014864