osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Compilation error with CentOs 6.4 : bz2 library not found

Open AlexDas opened this issue 13 years ago • 8 comments

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.

AlexDas avatar May 22 '13 08:05 AlexDas

Use the latest code from develop branch

DennisOSRM avatar May 22 '13 09:05 DennisOSRM

I already was working with the latest code ...

AlexDas avatar May 22 '13 09:05 AlexDas

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

DennisOSRM avatar May 22 '13 09:05 DennisOSRM

Ok thanks,

but then i got this

CMake Error: The source directory "/usr/src/Project-OSRM" does not appear to contain CMakeLists.txt.

AlexDas avatar May 22 '13 10:05 AlexDas

Switch to develop branch by doing git checkout develop and then run mkdir -p build; cd build; cmake ..; make

DennisOSRM avatar May 22 '13 10:05 DennisOSRM

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.

AlexDas avatar May 22 '13 14:05 AlexDas

Don't worry it's ok i fixed it. It seems that luabind wasn't well installed.

AlexDas avatar May 22 '13 14:05 AlexDas

AlexDas, this is an old issue but do you happen to remember what you did to get osrm to see your luabind build?

olearytd avatar May 06 '15 16:05 olearytd