Im trying to install pgRouting and I cannot reach the end of the way because of the following error:
psql:/home/user/share/postgresql/contrib/pgrouting-2.0/pgrouting.sql:2459:
ERROR: could not load library "/home/user/lib/postgresql/librouting_dd.so":
libCGAL.so.10: cannot open shared object file: No such file or directory
I get this error when I try to apply extensions in postgres database by executing
CREATE EXTENSION pgrouting
I installed the required dependencies and all installations were successful. Im installing the application in a CentOS server and binaries are installend in
/home/user/lib
and
/home/user/bin
librouting_dd is at:
/home/user/lib/postgresql/librouting_dd.so
and cgal is at:
/home/user/lib/libCGAL.so.10
To install the required dependencies and to install pgRouting I followed next steps:
::Installing Dependencies::
Navigate to tmp folder before start installing
- cd $HOME/tmp
- export TEMPDIR=$HOME/tmp
CMAKE
- wget http://www.cmake.org/files/v3.1/cmake-3.1.2.tar.gz
- tar xzf cmake-3.1.2.tar.gz
- cd cmake-3.1.2
- ./bootstrap
- make --prefix=$HOME
- make install
BOOST
- wget http://sourceforge.net/projects/boost/files/boost/1.57.0/boost.tar.gz
- tar xzf boost.tar.gz
- cd boost_1_57_0/
- ./boostrap.sh
- b2 install --prefix=$HOME
MPFR
- wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
- tar xzf mpfr-3.1.2.tar.gz
- cd mpfr-3.1.2/
- ./configure
- make
- make check
- make install
CGAL
- wget https://gforge.inria.fr/frs/download.php/file/34400/CGAL-4.5.1.tar.gz
- tar xzf CGAL-4.5.1.tar.gz
- cd CGAL-4.5.1/
- cmake .
- make
- make install
::Installing PGRouting::
Download package
- git clone git://github.com/pgRouting/pgrouting.git
- cd pgrouting
Install package
- mkdir build
- cd build
- cmake -DBoost_NO_BOOST_CMAKE=ON ..
- make
- make install
libCGAL.so.10
file not having read permissions, or (2) the/home/user/lib/
missing from the path.