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

installation problems #79

Open
jjenny opened this issue Dec 9, 2020 · 8 comments
Open

installation problems #79

jjenny opened this issue Dec 9, 2020 · 8 comments

Comments

@jjenny
Copy link

jjenny commented Dec 9, 2020

Hi,

I have htslib installed at ~/bin/htslib-1.11 and demuxlet downloaded to ~/bin/demuxlet.

I also have libtool installed ~/bin/libtool-2.4.6.

When I run autoreconf -vfi, I get:
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} aclocal: warning: couldn't open directory 'm4': No such file or directory autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory .'

And when I run ./configure --prefix ~/bin/demuxlet/, I get the following error (full config.log attached):

./configure: line 5186: syntax error near unexpected token 2.2' ./configure: line 5186: LT_PREREQ(2.2)'

Any ideas?

Jenny
config.log

@yimmieg
Copy link
Collaborator

yimmieg commented Dec 9, 2020 via email

@Gvaihir
Copy link
Contributor

Gvaihir commented Dec 9, 2020

htslib 1.11 is not supported, use 1.10.*
#78 (comment)

@statgen statgen deleted a comment from yimmieg Dec 9, 2020
@jjenny
Copy link
Author

jjenny commented Dec 9, 2020

Thanks for the quick response - I have switched to htslib 1.10.2 but get the same error messages when trying to compile. What version of gcc do you recommend for compiling?

config.log

@Gvaihir
Copy link
Contributor

Gvaihir commented Dec 9, 2020

Can you use another repo instead: https://github.com/statgen/popscle?

@jjenny
Copy link
Author

jjenny commented Dec 10, 2020 via email

@hyunminkang
Copy link
Contributor

I pushed a change that solves the compatibility issue with latest htslib (1.11). Let me know if the problem persists.

@Puriney
Copy link

Puriney commented Apr 13, 2021

I found popscle's docker container makes life smooth. https://github.com/statgen/popscle

@skchronicles
Copy link

skchronicles commented Jun 23, 2022

Solution

For anyone else running into this issue, I found that installing libtool fixes the problem.

Here is a basic sent of instructions that you can follow to install htslib and demuxlet:

# Step 1. Install and build HTSlib 1.10 (required by demuxlet)
# Needs to be a sibling directory to demuxlet install,
# the name of the htslib directory must be called htslib
wget https://github.com/samtools/htslib/releases/download/1.10/htslib-1.10.tar.bz2 \
    && tar -vxjf htslib-1.10.tar.bz2 \
    && rm htslib-1.10.tar.bz2 \
    && cd htslib-1.10 \
    && autoreconf -i \
    && ./configure \
    && make \
    && make install \
    && ln -s /opt2/htslib-1.10 /opt2/htslib \
    && cd ..
 
# Step 2. Install and build demuxlet, the ./configure command 
# needs libtool installed first   
DEBIAN_FRONTEND=noninteractive apt-get install -y libtool \
    && git clone https://github.com/statgen/demuxlet.git \
    && cd demuxlet \
    && autoreconf -vfi \
    && ./configure \
    && make \
    && make install

I hope this helps!

Best Regards,
@skchronicles

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

6 participants