[pgrouting-users] PGRouting 2.0 for RHEL5

Cooling, Steve Steve.Cooling at swansea.gov.uk
Wed Nov 27 02:53:38 PST 2013


Hi Steve,

	I've tried adding the lines to the astar_boost_wrapper.cpp file but it made no difference. I've tried googling the error but haven't found anything that has resolved the problem yet. I'll keep looking. Thanks for your help.

Cheers, 
      Steve 

_________________________________________

Steve Cooling

Senior Infrastructure Engineer | Swansea ICT Services
Capgemini UK | Swansea 
Direct Line : +44(0)1792 63 6830 | www.capgemini.com
People matter, results count.

_________________________________________


-----Original Message-----
From: pgrouting-users-bounces at lists.osgeo.org [mailto:pgrouting-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: 26 November 2013 14:30
To: pgrouting-users at lists.osgeo.org
Subject: Re: [pgrouting-users] PGRouting 2.0 for RHEL5

Hi Steve,

OK, a little google:

https://www.google.com/#newwindow=1&q=RHEL5+compile+error+%2Fusr%2Finclude%2Flibintl.h

Say this is the solution for another package:

http://lists.gnu.org/archive/html/pan-users/2006-05/msg00298.html

This is NOT directly a pgRouting problem as we do not include libintl.h 
directly. On my system the following files reference this:

$ find /usr/include/ -type f -exec grep -l 'libintl.h' {} \;
/usr/include/postgresql/c.h
/usr/include/postgresql/9.2/server/c.h
/usr/include/postgresql/internal/c.h
/usr/include/postgresql/9.1/server/c.h
/usr/include/python2.7/pyconfig.h
/usr/include/python2.6/pyconfig.h
/usr/include/c++/4.7/i486-linux-gnu/64/bits/messages_members.h
/usr/include/c++/4.7/i486-linux-gnu/64/bits/c++config.h
/usr/include/c++/4.7/i486-linux-gnu/bits/messages_members.h
/usr/include/c++/4.7/i486-linux-gnu/bits/c++config.h
/usr/include/c++/4.4/i486-linux-gnu/64/bits/messages_members.h
/usr/include/c++/4.4/i486-linux-gnu/64/bits/c++config.h
/usr/include/c++/4.4/i486-linux-gnu/bits/messages_members.h
/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h
/usr/include/python3.2mu/pyconfig.h
/usr/include/glib-2.0/glib/gi18n.h
/usr/include/glib-2.0/glib/gi18n-lib.h
/usr/include/libintl.h

Based on this list I'm guessing it is one of the postgresql header files 
that is the problem but based on other reading it seems more likely that 
this may be an issue related to some boost include.

Try adding the following immediately after #include "astar.h"

extern "C" {
#include <libintl.h>
}

in file "src/astar/src/astar_boost_wrapper.cpp" and see if that fixes 
the problem. If it does you will like have to do that in other .cpp 
files that have the same error.

Also try looking through more of the google pages.

I don't have a RHEL5 box to play on so I'm just guessing at this point.

-Steve

On 11/26/2013 4:19 AM, Cooling, Steve wrote:
>
> Hi Steve,
>
> 	I've downloaded and compiled boost 1.55.0 as can be seen from cmake output below but the same error is occurring when I run the make.
>
> -- The C compiler identification is GNU 4.1.2
> -- The CXX compiler identification is GNU 4.1.2
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- PGROUTING_G IT_TAG: pgrouting-2.0.0
> -- PGROUTING_G IT_BUILD: 0
> -- PGROUTING_G IT_HASH: f26831f
> -- PGROUTING_G IT_BRANCH: master
> -- PGROUTING_VERSION_REVISION_NAME: f26831f master
> -- PGROUTING_VERSION_REVISION_HASH: f26831f
> -- UNIX=1
> -- WIN32=
> -- POSTGRESQL_EXECUTABLE is /opt/postgres/9.1/bin/postgres
> -- POSTGRESQL_PG_CONFIG is /opt/postgres/9.1/bin/pg_config
> -- POSTGRESQL_INCLUDE_DIR: /opt/postgres/9.1/include/postgresql/server
> -- POSTGRESQL_LIBRARIES: /opt/postgres/9.1/lib
> -- Boost version: 1.55.0
> -- Boost headers were found here: /usr/local/include
> -- POSTGRESQL_VERSION_STRING is PostgreSQL 9.1.3
> -- POSTGRESQL_VERSION is 9.1.3
> -- PGSQL_VERSION is 91
> -- Install directory for libraries is set to /opt/postgres/9.1/lib/postgresql
> -- Contrib directory for SQL files is set to /opt/postgres/9.1/share/postgresql/contrib/pgrouting-2.0
> -- Extension directory for SQL files is set to /opt/postgres/9.1/share/postgresql/extension
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> --   thread
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> --   thread
> --   system
> -- CGAL_INCLUDE_DIR=/usr/local/include
> -- CGAL_LIBRARIES=/usr/local/lib/libCGAL.so
> -- BOOST_THREAD_LIBRARIES=/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_system.so
> -- GMP_LIBRARIES=/usr/lib64/libgmp.so
> -- Found CGAL: /usr/local/include, /usr/local/lib/libCGAL.so, /usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_system.so, /usr/lib64/libgmp.so
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /tmp/pgrouting-2.0.0/build
>
> Cheers,
>        Steve
>
> _________________________________________
>
> Steve Cooling
>
> Senior Infrastructure Engineer | Swansea ICT Services
> Capgemini UK | Swansea
> Direct Line : +44(0)1792 63 6830 | www.capgemini.com
> People matter, results count.
>
> _________________________________________
>
>
> -----Original Message-----
> From: pgrouting-users-bounces at lists.osgeo.org [mailto:pgrouting-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
> Sent: 25 November 2013 17:52
> To: pgrouting-users at lists.osgeo.org
> Cc: devrim at gunduz.org
> Subject: Re: [pgrouting-users] PGRouting 2.0 for RHEL5
>
> Hi Steve,
>
> Boost 1.33 is very old and while I have nothing to indicate that it is
> not supported, that might be the problem. I have compiled 1.34 in the
> past on a Debian Lenny system. Can you load a newer version of Boost?
>
> Also, I have no idea why the perl-Boost-Graph-1.4-1.el5.rf package did
> anything for you as we don't use that at all, but it may have pulled in
> a needed dependency.
>
> I'm at a loss otherwise. Maybe Devrim GÜNDÜZ has some ideas on this issue.
>
> Thanks,
>     -Steve
>
> On 11/25/2013 11:19 AM, Cooling, Steve wrote:
>>
>> Hi Steve,
>>
>> 	I already had boost-1.33.1-15.el5 and boost-devel-1.33.1-15.el5 installed. I've just installed the perl-Boost-Graph-1.4-1.el5.rf package and the Boost version is now showing in the cmake output - see below. Unfortunately, I'm still getting the same error when running the make.
>>
>>
>> -- The C compiler identification is GNU 4.1.2
>> -- The CXX compiler identification is GNU 4.1.2
>> -- Check for working C compiler: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- PGROUTING_G IT_TAG: pgrouting-2.0.0
>> -- PGROUTING_G IT_BUILD: 0
>> -- PGROUTING_G IT_HASH: f26831f
>> -- PGROUTING_G IT_BRANCH: master
>> -- PGROUTING_VERSION_REVISION_NAME: f26831f master
>> -- PGROUTING_VERSION_REVISION_HASH: f26831f
>> -- UNIX=1
>> -- WIN32=
>> -- POSTGRESQL_EXECUTABLE is /opt/postgres/9.1/bin/postgres
>> -- POSTGRESQL_PG_CONFIG is /opt/postgres/9.1/bin/pg_config
>> -- POSTGRESQL_INCLUDE_DIR: /opt/postgres/9.1/include/postgresql/server
>> -- POSTGRESQL_LIBRARIES: /opt/postgres/9.1/lib
>> -- Boost version: 1.33.1
>> -- Boost headers were found here: /usr/include
>> -- POSTGRESQL_VERSION_STRING is PostgreSQL 9.1.3
>> -- POSTGRESQL_VERSION is 9.1.3
>> -- PGSQL_VERSION is 91
>> -- Install directory for libraries is set to /opt/postgres/9.1/lib/postgresql
>> -- Contrib directory for SQL files is set to /opt/postgres/9.1/share/postgresql/contrib/pgrouting-2.0
>> -- Extension directory for SQL files is set to /opt/postgres/9.1/share/postgresql/extension
>> -- Boost version: 1.33.1
>> -- Found the following Boost libraries:
>> --   thread
>> -- CGAL_INCLUDE_DIR=/usr/local/include
>> -- CGAL_LIBRARIES=/usr/local/lib/libCGAL.so
>> -- BOOST_THREAD_LIBRARIES=/usr/lib64/libboost_thread.so
>> -- GMP_LIBRARIES=/usr/lib64/libgmp.so
>> -- Found CGAL: /usr/local/include, /usr/local/lib/libCGAL.so, /usr/lib64/libboost_thread.so, /usr/lib64/libgmp.so
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /tmp/pgrouting-2.0.0/build
>>
>> Cheers,
>>         Steve
>>
>> _________________________________________
>>
>> Steve Cooling
>>
>> Senior Infrastructure Engineer | Swansea ICT Services
>> Capgemini UK | Swansea
>> Direct Line : +44(0)1792 63 6830 | www.capgemini.com
>> People matter, results count.
>>
>> _________________________________________
>>
>>
>> -----Original Message-----
>> From: pgrouting-users-bounces at lists.osgeo.org [mailto:pgrouting-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
>> Sent: 25 November 2013 15:40
>> To: pgrouting-users at lists.osgeo.org
>> Subject: Re: [pgrouting-users] PGRouting 2.0 for RHEL5
>>
>> Hi Steve,
>>
>> This is what I have from cmake on Ubuntu 12.04. You can ignore the
>> messages about Sphinx and Latex. What concerns me about your build is
>> that it is missing:
>>
>> -- Boost version: 1.46.1
>> -- Found the following Boost libraries:
>> --   thread
>>
>> Make sure you have libboost-graph-dev and libboost-graph1 packages
>> installed. These are the Ubuntu names, you probably need something like:
>>
>> sudo yum install boost-devel.x86_64 boost-graph-1.44.0-8.fc14.x86_64
>>
>> Cmake should have errored out if it failed to find the dependency, that
>> might be a valid issue.
>>
>> -Steve
>>
>>
>> -- The C compiler identification is GNU 4.6.3
>> -- The CXX compiler identification is GNU 4.6.3
>> -- Check for working C compiler: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- PGROUTING_G IT_TAG: pgrouting-2.0.0
>> -- PGROUTING_G IT_BUILD: 8
>> -- PGROUTING_G IT_HASH: 92e3848
>> -- PGROUTING_G IT_BRANCH: develop
>> -- PGROUTING_VERSION_REVISION_NAME: 92e3848 develop
>> -- PGROUTING_VERSION_REVISION_HASH: 92e3848
>> -- UNIX=1
>> -- WIN32=
>> -- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/9.2/bin/postgres
>> -- POSTGRESQL_PG_CONFIG is /usr/bin/pg_config
>> -- POSTGRESQL_INCLUDE_DIR: /usr/include/postgresql/9.2/server
>> -- POSTGRESQL_LIBRARIES: /usr/lib
>> -- Boost version: 1.46.1
>> -- Boost headers were found here: /usr/include
>> -- POSTGRESQL_VERSION_STRING is PostgreSQL 9.2.5
>> -- POSTGRESQL_VERSION is 9.2.5
>> -- PGSQL_VERSION is 92
>> -- Install directory for libraries is set to /usr/lib/postgresql/9.2/lib
>> -- Contrib directory for SQL files is set to
>> /usr/share/postgresql/9.2/contrib/pgrouting-2.0
>> -- Extension directory for SQL files is set to
>> /usr/share/postgresql/9.2/extension
>> -- Checking for package 'Sphinx'
>> -- Found PythonInterp: /usr/bin/python (found version "2.7.3")
>> -- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE SPHINX_VERSION_OK)
>> CMake Warning at doc/CMakeLists.txt:17 (message):
>>      Sphinx not found.  Cannot generate documentation!
>>
>>
>> -- Boost version: 1.46.1
>> -- Found the following Boost libraries:
>> --   thread
>> -- CGAL_INCLUDE_DIR=/usr/include
>> -- CGAL_LIBRARIES=/usr/lib/libCGAL.so
>> -- BOOST_THREAD_LIBRARIES=/usr/lib/libboost_thread-mt.so;pthread
>> -- GMP_LIBRARIES=/usr/lib/x86_64-linux-gnu/libgmp.so
>> -- Found CGAL: /usr/include, /usr/lib/libCGAL.so,
>> /usr/lib/libboost_thread-mt.so;pthread, /usr/lib/x86_64-linux-gnu/libgmp.so
>> -- Configuring done
>> -- Generating done
>> CMake Warning:
>>      Manually-specified variables were not used by the project:
>>
>>        BUILD_LATEX
>>
>>
>> -- Build files have been written to: /home/woodbri/work/pgrouting/build
>>
>>
>> On 11/25/2013 10:19 AM, Cooling, Steve wrote:
>>> Hi Steve,
>>>
>>> 	Here is the cmake output.
>>>
>>> -- PGROUTING_G IT_TAG: pgrouting-2.0.0
>>> -- PGROUTING_G IT_BUILD: 0
>>> -- PGROUTING_G IT_HASH: f26831f
>>> -- PGROUTING_G IT_BRANCH: master
>>> -- PGROUTING_VERSION_REVISION_NAME: f26831f master
>>> -- PGROUTING_VERSION_REVISION_HASH: f26831f
>>> -- UNIX=1
>>> -- WIN32=
>>> -- POSTGRESQL_EXECUTABLE is /opt/postgres/9.1/bin/postgres
>>> -- POSTGRESQL_PG_CONFIG is /opt/postgres/9.1/bin/pg_config
>>> -- POSTGRESQL_INCLUDE_DIR: /opt/postgres/9.1/include/postgresql/server
>>> -- POSTGRESQL_LIBRARIES: /opt/postgres/9.1/lib
>>> -- Boost headers were found here: /usr/include
>>> -- POSTGRESQL_VERSION_STRING is PostgreSQL 9.1.3
>>> -- POSTGRESQL_VERSION is 9.1.3
>>> -- PGSQL_VERSION is 91
>>> -- Install directory for libraries is set to /opt/postgres/9.1/lib/postgresql
>>> -- Contrib directory for SQL files is set to /opt/postgres/9.1/share/postgresql/contrib/pgrouting-2.0
>>> -- Extension directory for SQL files is set to /opt/postgres/9.1/share/postgresql/extension
>>
>> missing stuff should be here:
>> -- Boost version: 1.46.1
>> -- Found the following Boost libraries:
>> --   thread
>>
>>> -- CGAL_INCLUDE_DIR=/usr/local/include
>>> -- CGAL_LIBRARIES=/usr/local/lib/libCGAL.so
>>> -- BOOST_THREAD_LIBRARIES=/usr/lib64/libboost_thread.so
>>> -- GMP_LIBRARIES=/usr/lib64/libgmp.so
>>> -- Found CGAL: /usr/local/include, /usr/local/lib/libCGAL.so, /usr/lib64/libboost_thread.so, /usr/lib64/libgmp.so
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to: /tmp/pgrouting-2.0.0/build
>>>
>>> Cheers,
>>>          Steve
>>>
>>> _________________________________________
>>>
>>> Steve Cooling
>>>
>>> Senior Infrastructure Engineer | Swansea ICT Services
>>> Capgemini UK | Swansea
>>> Direct Line : +44(0)1792 63 6830 | www.capgemini.com
>>> People matter, results count.
>>>
>>> _________________________________________
>>>
>>>
>>> -----Original Message-----
>>> From: pgrouting-users-bounces at lists.osgeo.org [mailto:pgrouting-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
>>> Sent: 25 November 2013 14:39
>>> To: pgrouting-users at lists.osgeo.org
>>> Subject: Re: [pgrouting-users] PGRouting 2.0 for RHEL5
>>>
>>> Hi Steve,
>>>
>>> This is a new one on me and I'm not sure what is causing that. It is not
>>> our code directly so I would guess it is something to do with the Boot
>>> version you have installed or with some internationalization features
>>> related to Boost, or Postgresql, but I can't be sure.
>>>
>>> Can you post the cmake output? That should tell use most everything.
>>>
>>> Has anyone on the list successfully built on RHEL5??
>>>
>>> Thanks,
>>>       -Steve
>>>
>>> On 11/25/2013 9:19 AM, Cooling, Steve wrote:
>>>> Hi,
>>>>
>>>> 	Thanks for your response. Following the manual, I did the following:
>>>>
>>>> mkdir build
>>>> cd build
>>>> cmake  ..
>>>> make
>>>> sudo make install
>>>>
>>>> When running the make command I got the below errors. Any help would be greatly appreciated.
>>>>
>>>> # make
>>>> [  8%] Built target trsp
>>>> [ 11%] Building CXX object src/astar/src/CMakeFiles/astar.dir/astar_boost_wrapper.cpp.o
>>>> /usr/include/libintl.h:40: error: expected unqualified-id before âconstâ
>>>> /usr/include/libintl.h:40: error: expected `)' before âconstâ
>>>> /usr/include/libintl.h:40: error: expected initializer before âconstâ
>>>> /usr/include/libintl.h:45: error: expected unqualified-id before âconstâ
>>>> /usr/include/libintl.h:45: error: expected `)' before âconstâ
>>>> /usr/include/libintl.h:45: error: expected initializer before âconstâ
>>>> /usr/include/libintl.h:62: error: expected unqualified-id before âunsignedâ
>>>> /usr/include/libintl.h:62: error: expected `)' before âunsignedâ
>>>> /usr/include/libintl.h:62: error: expected `)' before âunsignedâ
>>>> /usr/include/libintl.h:62: error: expected initializer before âunsignedâ
>>>> /usr/include/libintl.h:68: error: expected unqualified-id before âunsignedâ
>>>> /usr/include/libintl.h:68: error: expected `)' before âunsignedâ
>>>> /usr/include/libintl.h:68: error: expected `)' before âunsignedâ
>>>> /usr/include/libintl.h:68: error: expected initializer before âunsignedâ
>>>> make[2]: *** [src/astar/src/CMakeFiles/astar.dir/astar_boost_wrapper.cpp.o] Error 1
>>>> make[1]: *** [src/astar/src/CMakeFiles/astar.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>> Cheers,
>>>>           Steve
>>>>
>>>>
>>>> On 11/25/2013 6:43 AM, Cooling, Steve wrote:
>>>>> Hi,
>>>>>
>>>>>                  Is PGRouting 2.0 available as an rpm package for Redhat
>>>>> Enterprise Linux 5.8 and has anyone managed to install it successfully?
>>>>> I've tried compiling the source package but it has failed.
>>>>
>>>> Post how it failed and we can probably guide you through the issues.
>>>>
>>>> Is there anRHEL5 GIS package repository that someone maintains? We would
>>>> be happy to put them on our release notification list.
>>>>
>>>> -Steve
>>>> _______________________________________________

_______________________________________________
Pgrouting-users mailing list
Pgrouting-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


More information about the Pgrouting-users mailing list