Skip to content

Instantly share code, notes, and snippets.

@storytime
Created February 18, 2015 19:33
Show Gist options
  • Save storytime/8080595debba86625724 to your computer and use it in GitHub Desktop.
Save storytime/8080595debba86625724 to your computer and use it in GitHub Desktop.
# Misc:
- Update system -
cat /etc/redhat-release --> see 6.5
yum update
reboot
cat /etc/redhat-release --> see 6.6
- Enable repo -
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
- Install packages -
yum install gcc-c++ libxml2-devel bzip2-devel protobuf-devel cmake libzip-devel lua-devel protobuf-lite protobuf-lite-devel tbb-devel libzip tbb
yum install patch openmpi
--!!!!--> The software will not accept boost version 1.41 (yum install boost), you need a highter version like 1.44, 1.57 <--!!!!--
- pack boost -
cd /tmp
wget http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2
tar -jxf boost_1_57_0.tar.bz2
cd boost_1_57_0/
./bootstrap.sh --prefix=/opt/osrm_infrastructure/boost_1_57_0
./b2 --prefix=/opt/osrm_infrastructure/boost_1_57_0
- pack boost-jam -
cd /tmp
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/jblunck:/md/CentOS_CentOS-6/x86_64/boost-jam-1.46.1-10.1.x86_64.rpm
rpm -ivh boost-jam-1.46.1-10.1.x86_64.rpm
- pack boost-build -
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/jblunck:/md/CentOS_CentOS-6/x86_64/boost-build-1.46.1-10.1.x86_64.rpm
rpm -ivh boost-build-1.46.1-10.1.x86_64.rpm
- pack STXXL -
cd /tmp
git clone git://github.com/stxxl/stxxl.git
cd stxxl/
mkdir debug && cd debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/osrm_infrastructure/stxx -DBUILD_STATIC_LIBS=ON ..
make -j4 && make install ( in case you have low RAM memory on machine e.g. 512 MB RAM use: make -j2)
cd..
mkdir release && cd release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/osrm_infrastructure/stxx -DBUILD_STATIC_LIBS=ON ..
make -j4 && make install ( in case you have low RAM memory on machine e.g. 512 MB RAM use: make -j2)
------------------------------------------------------------------------------------------------------
- pack LUABIND -
cd /tmp
wget http://sourceforge.net/projects/luabind/files/luabind/0.9.1/luabind-0.9.1.tar.gz
tar -zxf luabind-0.9.1.tar.gz
cd luabind-0.9.1/
## change: local lib = $(prefix)/lib ; --> local lib = $(prefix)/lib64 ;
sed -i 's|(prefix)/lib ;|(prefix)/lib64 ;|' Jamroot
git clone https://gist.github.com/2011636.git
patch -p1 < ./2011636/luabind_boost.patch
/tmp/boost_1_57_0/bjam install --prefix=/opt/osrm_infrastructure/luabind-0.9.1
------------------------------------------------------------------------------------------------------
- pack LUAJit -
cd /tmp
wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz
tar -zxvf LuaJIT-2.0.2.tar.gz
cd LuaJIT-2.0.2/
make install PREFIX=/opt/osrm_infrastructure/LuaJIT-2.0.2
------------------------------------------------------------------------------------------------------
- pack OSM BINARY -
cd /tmp
git clone https://github.com/scrosby/OSM-binary.git
cd OSM-binary
mkdir build
cd build
cmake ..
make
make install
------------------------------------------------------------------------------------------------------
- pack OSRM -
cd /opt
wget -O Project-OSRM-0.3.7.zip https://github.com/DennisOSRM/Project-OSRM/archive/v0.3.7.zip
unzip Project-OSRM-0.3.7.zip
cd osrm-backend-0.3.7
sed -i 's| -pedantic||' CMakeLists.txt
mkdir build
cd build
cmake
-DLUABIND_INCLUDE_DIR=/opt/osrm_infrastructure/luabind-0.9.1/include
-DLUABIND_LIBRARY=/opt/osrm_infrastructure/luabind-0.9.1/lib/libluabindd.so \
-DLUAJIT_LIBRARIES=/opt/osrm_infrastructure/LuaJIT-2.0.2/lib/libluajit-5.1.so \
-DLUAJIT_INCLUDE_DIR=/opt/osrm_infrastructure/LuaJIT-2.0.2/include/ \
-DSTXXL_LIBRARY=/opt/osrm_infrastructure/stxx/lib/libstxxl.a \
-DSTXXL_INCLUDE_DIR=/opt/osrm_infrastructure/stxx/include \
-DOSMPBF_LIBRARY=/tmp/OSM-binary/build/src/libosmpbf.a \
-DOSMPBF_INCLUDE_DIR=/tmp/OSM-binary/include \
-DBOOST_LIBRARYDIR=/opt/osrm_infrastructure/boost_1_57_0/lib ..
------------------------------------------------------------------------------------------------------
# Get GEO Data:
https://gist.github.com/iandees/9572750
https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM
# Front WEB Interface
Front Web: https://github.com/Project-OSRM/osrm-frontend
Hope you will succed to solve the mystery
Alex
========= IGNORE =====================
@@@@@ ON WEB
cmake -DLUABIND_INCLUDE_DIR=/opt/osrm_infrastructure/luabind-0.9.1/include -DLUABIND_LIBRARY=/opt/osrm_infrastructure/luabind-0.9.1/lib/libluabindd.so -DLUAJIT_LIBRARIES=/opt/osrm_infrastructure/LuaJIT-2.0.2/lib/libluajit-5.1.so
-DLUAJIT_INCLUDE_DIR=/opt/osrm_infrastructure/LuaJIT-2.0.2/include/ -DSTXXL_LIBRARY=/opt/osrm_infrastructure/stxx/lib/libstxxl.a -DSTXXL_INCLUDE_DIR=/opt/osrm_infrastructure/stxx/include -DOSMPBF_LIBRARY=/usr/local/lib/libosmpbf.a \
-DOSMPBF_INCLUDE_DIR=/usr/local/include/ -DBOOST_LIBRARYDIR=/usr/lib64 ..
??????????? -DBOOST_LIBRARYDIR=/opt/osrm_infrastructure/boost_1_57_0/lib ???????????
@@@@@
cmake
-DLUABIND_INCLUDE_DIR=/opt/osrm_infrastructure/luabind-0.9.1/include
-DLUABIND_LIBRARY=/opt/osrm_infrastructure/luabind-0.9.1/lib/libluabindd.so
-DLUAJIT_LIBRARIES=/opt/osrm_infrastructure/LuaJIT-2.0.2/lib/libluajit-5.1.so
-DLUAJIT_INCLUDE_DIR=/opt/osrm_infrastructure/LuaJIT-2.0.2/include/
-DSTXXL_LIBRARY=/opt/osrm_infrastructure/stxx/lib/libstxxl.a
-DSTXXL_INCLUDE_DIR=/opt/osrm_infrastructure/stxx/include
-DOSMPBF_LIBRARY=/tmp/OSM-binary/build/src/libosmpbf.a
-DOSMPBF_INCLUDE_DIR=/tmp/OSM-binary/include
-DBOOST_LIBRARYDIR=/tmp/boost_1_57_0/libs
========= IGNORE =====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment