I'm trying to install osrm in my server centos 7, but i can't do it... i tried a lot and differents ways.. but i can't
[root@u18343387 build]# cmake ..
-- Building on a 64 bit system
-- Configuring OSRM in release mode
-- Setting linker optimizations
-- Boost version: 1.52.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- iostreams
-- program_options
-- regex
-- system
-- thread
-- unit_test_framework
-- Found Intel TBB
-- Looking for Luabind...
CMake Error at /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Luabind (missing: LUABIND_LIBRARIES LUABIND_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLuabind.cmake:64 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:247 (find_package)
what can i do... plx, explane me, i'm a new in this... this the content of the file cmake error
Performing C++ SOURCE FILE Test LTO_AVAILABLE failed with the following output:
Change Dir: /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2838510061/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2838510061.dir/build.make CMakeFiles/cmTryCompileExec2838510061.dir/build
gmake[1]: Entering directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2838510061.dir/src.cxx.o
/usr/bin/c++ -DLTO_AVAILABLE -flto -o CMakeFiles/cmTryCompileExec2838510061.dir/src.cxx.o -c /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: error: unrecognized command line option "-flto"
gmake[1]: *** [CMakeFiles/cmTryCompileExec2838510061.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2838510061/fast] Error 2
Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAS_COLOR_FLAG failed with the following output:
Change Dir: /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2322203982/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2322203982.dir/build.make CMakeFiles/cmTryCompileExec2322203982.dir/build
gmake[1]: Entering directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2322203982.dir/src.cxx.o
/usr/bin/c++ -DHAS_COLOR_FLAG -fdiagnostics-color=auto -o CMakeFiles/cmTryCompileExec2322203982.dir/src.cxx.o -c /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: error: unrecognized command line option "-fdiagnostics-color=auto"
gmake[1]: *** [CMakeFiles/cmTryCompileExec2322203982.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2322203982/fast] Error 2
Source file was:
int main() { return 0;}
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec869518868/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec869518868.dir/build.make CMakeFiles/cmTryCompileExec869518868.dir/build
gmake[1]: Entering directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec869518868.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec869518868.dir/CheckSymbolExists.c.o -c /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec869518868
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec869518868.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec869518868.dir/CheckSymbolExists.c.o -o cmTryCompileExec869518868 -rdynamic
CMakeFiles/cmTryCompileExec869518868.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0xc): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec869518868] Error 1
gmake[1]: Leaving directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec869518868/fast] Error 2
File /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec1634399928/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1634399928.dir/build.make CMakeFiles/cmTryCompileExec1634399928.dir/build
gmake[1]: Entering directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1634399928.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec1634399928.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1634399928
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1634399928.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec1634399928.dir/CheckFunctionExists.c.o -o cmTryCompileExec1634399928 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec1634399928] Error 1
gmake[1]: Leaving directory `/home/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1634399928/fast] Error 2
asked 24 Feb '16, 07:24

DarckBlezzer
11●2●2●4
accept rate: 0%
i have this error
I need to downgrade lua???
The first hit when searching for "Luabind does not work with Lua 5.1" is OSRM issue 1196. According to the comments this can happen if you have a parallel installation of lua 5.1 and 5.2 (which should be fixed if I understood correctly) or your system has not enough memory. The latter is also explained in issue 1580.