lbcb-sci / raven

De novo genome assembler for long uncorrected reads
MIT License
202 stars 21 forks source link

error while loading shared libraries: libraven.so: #49

Open gunjanpandey opened 3 years ago

gunjanpandey commented 3 years ago

Could you please help with the following error while starting

raven: error while loading shared libraries: libraven.so: cannot open shared object file: No such file or directory

rvaser commented 3 years ago

Hi, raven does not build any shared library, are you at the right repository? I am aware there exists a package called raven in conda-forge, while this repo is packaged as raven-assembler in bioconda. Might this be the problem?

Best regards, Robert

erinyoung commented 2 years ago

I don't know if I ran into the same error, but it seems similar.

I cloned the repo and attempted to install with the instructions listed in the readme.

$ git clone https://github.com/lbcb-sci/raven && cd raven
Cloning into 'raven'...
remote: Enumerating objects: 1487, done.
remote: Counting objects: 100% (287/287), done.
remote: Compressing objects: 100% (98/98), done.
remote: Total 1487 (delta 206), reused 232 (delta 177), pack-reused 1200
Receiving objects: 100% (1487/1487), 1.78 MiB | 3.93 MiB/s, done.
Resolving deltas: 100% (929/929), done.
$ cmake -S ./ -B ./build -DRAVEN_BUILD_EXE=1 -DCMAKE_BUILD_TYPE=Release -Wno-dev
 ---> Running in 8ab57be748e9
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.8") 
-- The C compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR serialization) 
-- optional.cpp
-- variant.cpp
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Setting warning flags
-- Performing Test WOLD_STYLE_CAST
-- Performing Test WOLD_STYLE_CAST - Success
-- Performing Test WSHADOW
-- Performing Test WSHADOW - Success
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /raven/build
$ cmake --install ./build
CMake Error at build/cmake_install.cmake:41 (file):
  file INSTALL cannot find "/raven/build/lib/libraven.a": No such file
  or directory.

I also tried installing with ninja and found the same error. Is this a Doxygen or Boost error?

erinyoung commented 2 years ago

As a follow up, this is what gets installed in build and build/lib (build/lib is empty)

$ ls build
CMakeCache.txt
CMakeFiles
CPackConfig.cmake
CPackSourceConfig.cmake
Makefile
_deps
bin
cmake_install.cmake
coverage
include
lib
ravenConfigVersion.cmake
$ ls build/lib
erinyoung commented 2 years ago

For anyone else that runs into this issue, it appears that there's a step missing in the readme. It should actually be

cmake -S ./ -B ./build -DRAVEN_BUILD_EXE=1 -DCMAKE_BUILD_TYPE=Release -Wno-dev && \
    cmake --build build && \
    cmake --install ./build