delly icon indicating copy to clipboard operation
delly copied to clipboard

Problem installing Delly

Open briarj opened this issue 10 months ago • 1 comments

Hi. Trying to install Delly with: git clone --recursive https://github.com/dellytools/delly.git cd delly/ make all

But it gives me the following error: _g++ -std=c++11 -isystem Delly/delly/src/htslib/ -pedantic -W -Wall -Wno-unknown-pragmas -D__STDC_LIMIT_MACROS -fno-strict-aliasing -fpermissive -DNOPENMP -O3 -fno-tree-vectorize -DNDEBUG src/delly.cpp src/edlib.cpp -o src/delly -L/Delly/delly/src/htslib/ -lboost_iostreams -lboost_filesystem -lboost_system -lboost_program_options -lboost_date_time -lhts -lz -llzma -lbz2 -Wl,-rpath,Delly/delly/src/htslib/ In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = char; _Args = {}; _Tp = char]’, inlined from ‘typename std::enable_if<boost::detail::alloc_has_construct<void, A, T, Args ...>::value>::type boost::allocator_construct(A&, T*, Args&& ...) [with A = std::allocator; T = char; Args = {}]’ at /usr/include/boost/core/allocator_access.hpp:432:16, inlined from ‘void boost::alloc_construct_n(A&, T*, std::size_t) [with A = std::allocator; T = char]’ at /usr/include/boost/core/alloc_construct.hpp:122:35, inlined from ‘void boost::multi_array<T, NumDims, Allocator>::allocate_space() [with T = char; long unsigned int NumDims = 2; Allocator = std::allocator]’ at /usr/include/boost/multi_array.hpp:548:29, inlined from ‘boost::multi_array<T, NumDims, Allocator>::multi_array(const Allocator&) [with T = char; long unsigned int NumDims = 2; Allocator = std::allocator]’ at /usr/include/boost/multi_array.hpp:156:19: cc1plus: warning: ‘void* _builtin_memset(void*, int, long unsigned int)’ offset 0 is out of the bounds [0, 0] [-Warray-bounds] /usr/bin/ld: cannot find -lboost_iostreams: No such file or directory /usr/bin/ld: cannot find -lboost_filesystem: No such file or directory /usr/bin/ld: cannot find -lboost_system: No such file or directory /usr/bin/ld: cannot find -lboost_program_options: No such file or directory /usr/bin/ld: cannot find -lboost_date_time: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:60: src/delly] Error 1

Any ideas how to solve this?

briarj avatar Apr 18 '24 14:04 briarj

You need to install the boost libraries, e.g., for ubuntu:

apt install libboost-date-time-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev

tobiasrausch avatar Apr 18 '24 15:04 tobiasrausch