Build the dependencies yourself
Building GLIMPSE2 normally uses the libraries from your package manager. Build HTSlib and Boost yourself if you have no root access, if your distribution doesn’t package them or ships versions that are too old, or if you want Boost 1.84 or newer so that you can read and write .bin reference panels that other builds can use (see the note on the build page).
The commands below install both libraries into one directory, $DEPS, that you own. Set it to any location you like.
export DEPS=$HOME/glimpse-depsmkdir -p $DEPS/src && cd $DEPS/src
# HTSlib 1.25wget https://github.com/samtools/htslib/releases/download/1.25/htslib-1.25.tar.bz2tar -xf htslib-1.25.tar.bz2cd htslib-1.25./configure --prefix=$DEPSmake -j4 && make installcd ..
# Boost 1.90, only the three libraries GLIMPSE2 useswget https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.bz2tar --bzip2 -xf boost_1_90_0.tar.bz2cd boost_1_90_0./bootstrap.sh --with-libraries=iostreams,program_options,serialization --prefix=$DEPS./b2 installHTSlib needs zlib, bzip2, xz, libcurl, OpenSSL and libdeflate to be installed on the system. Its documentation lists the details. Compiling Boost takes a few minutes.
After this, $DEPS/include holds the headers of both libraries and $DEPS/lib their static libraries. Build GLIMPSE2 against them:
cd /path/to/GLIMPSEmake system SYS_HTSLIB_INC=$DEPS/include SYS_HTSLIB_LIBDIR=$DEPS/lib \ SYS_BOOST_INC=$DEPS/include SYS_BOOST_LIB=$DEPS/lib