Compilation error with CentOs 6.4 : bz2 library not found
Hi,
I'm trying to install osrm on a server but when i compile i get this error :
scons: Reading SConscript files ... Using default C++ Compiler: g++ Default platform Checking for C++ library pthread... yes Checking for C++ library luajit-5.1... yes Checking for C header file omp.h... yes Checking for C++ library bz2... no bz2 library not found. Exiting
I checked if bz2 was already installed and it is. Can somebody help me ? Thanks.
Use the latest code from develop branch
I already was working with the latest code ...
Develop branch uses cmake as build tool. It is much more reliable for dependency lookup. See build instructions here: https://github.com/DennisOSRM/Project-OSRM/wiki/Building%20OSRM
Ok thanks,
but then i got this
CMake Error: The source directory "/usr/src/Project-OSRM" does not appear to contain CMakeLists.txt.
Switch to develop branch by doing git checkout develop and then run mkdir -p build; cd build; cmake ..; make
I've switched to develop branch as you said. I launched "cmake" but i got this :
-- Configuring OSRM in release mode -- Looking for Luabind... CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE): Could NOT find Luabind (missing: LUABIND_LIBRARIES) Call Stack (most recent call first): cmake/FindLuabind.cmake:64 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:82 (find_package)
I've downloaded luabind and build it. I tried to put the luabind.hpp in many repertories but no one worked. I always got this error and I don't understand why.
Don't worry it's ok i fixed it. It seems that luabind wasn't well installed.
AlexDas, this is an old issue but do you happen to remember what you did to get osrm to see your luabind build?