[pgrouting-users] Error whilst installing on CentOS 5.5

Hi all,

I'm trying to install the pgrouting library but have hit a bit of a
problem whilst installing. It's probably something I've done (I'm
quite new to Linux so struggling to understand the error message). I
followed the instructions given at
http://www.pgrouting.org/docs/1.x/install_centos.html and I'm
installing on CentOS 5.5. Has anyone seen this before or have any
ideas how to resolve it?

[root@localhost pgrouting]# git clone
git://github.com/pgRouting/pgrouting.git pgrouting

[root@localhost pgrouting]# cd pgrouting

[root@localhost pgrouting]# sudo /root/cmake-2.8.3-Linux-i386/bin/cmake .

[root@localhost pgrouting]# make install

[ 16%] Building CXX object
core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:26:54: error:
boost/property_map/vector_property_map.hpp: No such file or directory
In file included from
/root/pgrouting/core/src/shooting_star_search.hpp:22, from
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:27:
/root/pgrouting/core/src/shooting_star_relax.hpp:18:47: error:
boost/property_map/property_map.hpp: No such file or directory
make[2]: [core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o]
Error 1 make[1]:[core/src/CMakeFiles/routing.dir/all] Error 2 make:
[all] Error 2

Hi Richard

You need the boost-devel rpm.

hth
charles

On Jan 24, 2011, at 11:13 AM, Richard Willars wrote:

Hi all,

I'm trying to install the pgrouting library but have hit a bit of a
problem whilst installing. It's probably something I've done (I'm
quite new to Linux so struggling to understand the error message). I
followed the instructions given at
http://www.pgrouting.org/docs/1.x/install_centos.html and I'm
installing on CentOS 5.5. Has anyone seen this before or have any
ideas how to resolve it?

[root@localhost pgrouting]# git clone
git://github.com/pgRouting/pgrouting.git pgrouting

[root@localhost pgrouting]# cd pgrouting

[root@localhost pgrouting]# sudo /root/cmake-2.8.3-Linux-i386/bin/cmake .

[root@localhost pgrouting]# make install

[ 16%] Building CXX object
core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:26:54: error:
boost/property_map/vector_property_map.hpp: No such file or directory
In file included from
/root/pgrouting/core/src/shooting_star_search.hpp:22, from
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:27:
/root/pgrouting/core/src/shooting_star_relax.hpp:18:47: error:
boost/property_map/property_map.hpp: No such file or directory
make[2]: [core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o]
Error 1 make[1]:[core/src/CMakeFiles/routing.dir/all] Error 2 make:
[all] Error 2
_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

Hi Charles,

Thanks for the advice. Unfortunately I've already got boost-devel
installed (v1.33.1). I can see there's a newer version of boost
available (1.45) but it's not available via yum.. if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard

On Mon, Jan 24, 2011 at 4:21 PM, Charles Galpin <cgalpin@lhsw.com> wrote:

Hi Richard

You need the boost-devel rpm.

hth
charles

On Jan 24, 2011, at 11:13 AM, Richard Willars wrote:

Hi all,

I'm trying to install the pgrouting library but have hit a bit of a
problem whilst installing. It's probably something I've done (I'm
quite new to Linux so struggling to understand the error message). I
followed the instructions given at
http://www.pgrouting.org/docs/1.x/install_centos.html and I'm
installing on CentOS 5.5. Has anyone seen this before or have any
ideas how to resolve it?

[root@localhost pgrouting]# git clone
git://github.com/pgRouting/pgrouting.git pgrouting

[root@localhost pgrouting]# cd pgrouting

[root@localhost pgrouting]# sudo /root/cmake-2.8.3-Linux-i386/bin/cmake .

[root@localhost pgrouting]# make install

[ 16%] Building CXX object
core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:26:54: error:
boost/property_map/vector_property_map.hpp: No such file or directory
In file included from
/root/pgrouting/core/src/shooting_star_search.hpp:22, from
/root/pgrouting/core/src/shooting_star_boost_wrapper.cpp:27:
/root/pgrouting/core/src/shooting_star_relax.hpp:18:47: error:
boost/property_map/property_map.hpp: No such file or directory
make[2]: [core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o]
Error 1 make[1]:[core/src/CMakeFiles/routing.dir/all] Error 2 make:
[all] Error 2
_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

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

I don’t think the version os the problem since I am running the same. I don’t recall what I did exactly but did run ldconfig at some point. Perhaps run that and try again.

However I have since learned about pgrpms and in theory installing postgis should be as simple as

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgis90

This ets the postgres repos setup and then installs postgis and all dependencies from it.

There is a remote chance you’d need to edit /etc/yum.repos.d/CentOS-Base.repo [base] and [updates] sections and add

exclude=postgresql*

This might be worth a try (I have tried this in a fresh VM and it appears to have worked fine but have not attempted to use it yet). Long term this is a much better approach than building from scratch each time (for me). I am not sure if this includes pgrouting, but it’s a good start even if not.

hth
charles

On Jan 24, 2011, at 12:07 PM, Richard Willars wrote:

Hi Charles,

Thanks for the advice. Unfortunately I’ve already got boost-devel
installed (v1.33.1). I can see there’s a newer version of boost
available (1.45) but it’s not available via yum… if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard

It must be something with the Boost version.
About a year ago users started to complain about this error and it seemed that some path related to the “property_map” changed in newer Boost versions. After this happened with Ubuntu and FreeBSD … and I think also Debian (don’t know exactly), I corrected this according to the patch someone sent … as far as I remember.
You can find it in the commit message of edge_visitor.hpp for example:
https://github.com/pgRouting/pgrouting/commits/master/core/src/edge_visitors.hpp

Sorry, but I’m also not so familiar with Git yet and don’t know exactly how to get the changes of this revisions. But I remember there were a few files where the path has changed.

When you checkout Tag “v1.05” though it’s still the previous path and you should be able to compile.
Good to know that there are still distributions with pretty ancient Boost.

Daniel

2011/1/25 Charles Galpin <cgalpin@lhsw.com>

I don’t think the version os the problem since I am running the same. I don’t recall what I did exactly but did run ldconfig at some point. Perhaps run that and try again.

However I have since learned about pgrpms and in theory installing postgis should be as simple as

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgis90

This ets the postgres repos setup and then installs postgis and all dependencies from it.

There is a remote chance you’d need to edit /etc/yum.repos.d/CentOS-Base.repo [base] and [updates] sections and add

exclude=postgresql*

This might be worth a try (I have tried this in a fresh VM and it appears to have worked fine but have not attempted to use it yet). Long term this is a much better approach than building from scratch each time (for me). I am not sure if this includes pgrouting, but it’s a good start even if not.

hth
charles

On Jan 24, 2011, at 12:07 PM, Richard Willars wrote:

Hi Charles,

Thanks for the advice. Unfortunately I’ve already got boost-devel
installed (v1.33.1). I can see there’s a newer version of boost
available (1.45) but it’s not available via yum… if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard


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


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Thanks to both of you. I actually already had that rpm installed so tried downloading postgis90, unfortunately it kicked up with a load of issues about conflicts so I gave up! I also tried upgrading boost-devel to the latest version but it didn’t seem to think it was still running an old version even after installation.

Already spent 3 days trying to get it working on CentOS so I’ve switched to Debian to see if I have any better luck! Installation went really well right up to the part of compiling the pgrouting library… I got the following error:

http://pastie.org/1495628

I was following these instructions: http://www.gisnotes.com/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/

As those instructions install postgresql 8.3 I tried both version 1.05 and 1.02 of pgrouting, however both came up with errors.

Any thoughts?

Regards,
Richard

On Tue, Jan 25, 2011 at 1:02 AM, Daniel Kastl <daniel@georepublic.de> wrote:

It must be something with the Boost version.
About a year ago users started to complain about this error and it seemed that some path related to the “property_map” changed in newer Boost versions. After this happened with Ubuntu and FreeBSD … and I think also Debian (don’t know exactly), I corrected this according to the patch someone sent … as far as I remember.
You can find it in the commit message of edge_visitor.hpp for example:
https://github.com/pgRouting/pgrouting/commits/master/core/src/edge_visitors.hpp

Sorry, but I’m also not so familiar with Git yet and don’t know exactly how to get the changes of this revisions. But I remember there were a few files where the path has changed.

When you checkout Tag “v1.05” though it’s still the previous path and you should be able to compile.
Good to know that there are still distributions with pretty ancient Boost.

Daniel

2011/1/25 Charles Galpin <cgalpin@lhsw.com>

I don’t think the version os the problem since I am running the same. I don’t recall what I did exactly but did run ldconfig at some point. Perhaps run that and try again.

However I have since learned about pgrpms and in theory installing postgis should be as simple as

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgis90

This ets the postgres repos setup and then installs postgis and all dependencies from it.

There is a remote chance you’d need to edit /etc/yum.repos.d/CentOS-Base.repo [base] and [updates] sections and add

exclude=postgresql*

This might be worth a try (I have tried this in a fresh VM and it appears to have worked fine but have not attempted to use it yet). Long term this is a much better approach than building from scratch each time (for me). I am not sure if this includes pgrouting, but it’s a good start even if not.

hth
charles

On Jan 24, 2011, at 12:07 PM, Richard Willars wrote:

Hi Charles,

Thanks for the advice. Unfortunately I’ve already got boost-devel
installed (v1.33.1). I can see there’s a newer version of boost
available (1.45) but it’s not available via yum… if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard


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


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de


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

I googled for that error and found this fix

http://download.osgeo.org/pgrouting/forum/pgrouting.postlbs.org/ticket/138.html

Not sure what to say about centos. I don’t have time to try it right now and wish I had taken notes. It couldn’t have been to hard or I would have :slight_smile:

charles

On Jan 25, 2011, at 6:13 AM, Richard Willars wrote:

Thanks to both of you. I actually already had that rpm installed so tried downloading postgis90, unfortunately it kicked up with a load of issues about conflicts so I gave up! I also tried upgrading boost-devel to the latest version but it didn’t seem to think it was still running an old version even after installation.

Already spent 3 days trying to get it working on CentOS so I’ve switched to Debian to see if I have any better luck! Installation went really well right up to the part of compiling the pgrouting library… I got the following error:

http://pastie.org/1495628

I was following these instructions: http://www.gisnotes.com/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/

As those instructions install postgresql 8.3 I tried both version 1.05 and 1.02 of pgrouting, however both came up with errors.

Any thoughts?

Regards,
Richard

On Tue, Jan 25, 2011 at 1:02 AM, Daniel Kastl <daniel@georepublic.de> wrote:

It must be something with the Boost version.
About a year ago users started to complain about this error and it seemed that some path related to the “property_map” changed in newer Boost versions. After this happened with Ubuntu and FreeBSD … and I think also Debian (don’t know exactly), I corrected this according to the patch someone sent … as far as I remember.
You can find it in the commit message of edge_visitor.hpp for example:
https://github.com/pgRouting/pgrouting/commits/master/core/src/edge_visitors.hpp

Sorry, but I’m also not so familiar with Git yet and don’t know exactly how to get the changes of this revisions. But I remember there were a few files where the path has changed.

When you checkout Tag “v1.05” though it’s still the previous path and you should be able to compile.
Good to know that there are still distributions with pretty ancient Boost.

Daniel

2011/1/25 Charles Galpin <cgalpin@lhsw.com>

I don’t think the version os the problem since I am running the same. I don’t recall what I did exactly but did run ldconfig at some point. Perhaps run that and try again.

However I have since learned about pgrpms and in theory installing postgis should be as simple as

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgis90

This ets the postgres repos setup and then installs postgis and all dependencies from it.

There is a remote chance you’d need to edit /etc/yum.repos.d/CentOS-Base.repo [base] and [updates] sections and add

exclude=postgresql*

This might be worth a try (I have tried this in a fresh VM and it appears to have worked fine but have not attempted to use it yet). Long term this is a much better approach than building from scratch each time (for me). I am not sure if this includes pgrouting, but it’s a good start even if not.

hth
charles

On Jan 24, 2011, at 12:07 PM, Richard Willars wrote:

Hi Charles,

Thanks for the advice. Unfortunately I’ve already got boost-devel
installed (v1.33.1). I can see there’s a newer version of boost
available (1.45) but it’s not available via yum… if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard


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


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de


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


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

Have you tried this?
http://download.osgeo.org/pgrouting/forum/pgrouting.postlbs.org/ticket/138.html#comment:4

Daniel

2011/1/25 Charles Galpin <cgalpin@lhsw.com>

I googled for that error and found this fix

http://download.osgeo.org/pgrouting/forum/pgrouting.postlbs.org/ticket/138.html

Not sure what to say about centos. I don’t have time to try it right now and wish I had taken notes. It couldn’t have been to hard or I would have :slight_smile:

charles

On Jan 25, 2011, at 6:13 AM, Richard Willars wrote:

Thanks to both of you. I actually already had that rpm installed so tried downloading postgis90, unfortunately it kicked up with a load of issues about conflicts so I gave up! I also tried upgrading boost-devel to the latest version but it didn’t seem to think it was still running an old version even after installation.

Already spent 3 days trying to get it working on CentOS so I’ve switched to Debian to see if I have any better luck! Installation went really well right up to the part of compiling the pgrouting library… I got the following error:

http://pastie.org/1495628

I was following these instructions: http://www.gisnotes.com/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/

As those instructions install postgresql 8.3 I tried both version 1.05 and 1.02 of pgrouting, however both came up with errors.

Any thoughts?

Regards,
Richard

On Tue, Jan 25, 2011 at 1:02 AM, Daniel Kastl <daniel@georepublic.de> wrote:

It must be something with the Boost version.
About a year ago users started to complain about this error and it seemed that some path related to the “property_map” changed in newer Boost versions. After this happened with Ubuntu and FreeBSD … and I think also Debian (don’t know exactly), I corrected this according to the patch someone sent … as far as I remember.
You can find it in the commit message of edge_visitor.hpp for example:
https://github.com/pgRouting/pgrouting/commits/master/core/src/edge_visitors.hpp

Sorry, but I’m also not so familiar with Git yet and don’t know exactly how to get the changes of this revisions. But I remember there were a few files where the path has changed.

When you checkout Tag “v1.05” though it’s still the previous path and you should be able to compile.
Good to know that there are still distributions with pretty ancient Boost.

Daniel

2011/1/25 Charles Galpin <cgalpin@lhsw.com>

I don’t think the version os the problem since I am running the same. I don’t recall what I did exactly but did run ldconfig at some point. Perhaps run that and try again.

However I have since learned about pgrpms and in theory installing postgis should be as simple as

rpm -ivh http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm
yum install postgis90

This ets the postgres repos setup and then installs postgis and all dependencies from it.

There is a remote chance you’d need to edit /etc/yum.repos.d/CentOS-Base.repo [base] and [updates] sections and add

exclude=postgresql*

This might be worth a try (I have tried this in a fresh VM and it appears to have worked fine but have not attempted to use it yet). Long term this is a much better approach than building from scratch each time (for me). I am not sure if this includes pgrouting, but it’s a good start even if not.

hth
charles

On Jan 24, 2011, at 12:07 PM, Richard Willars wrote:

Hi Charles,

Thanks for the advice. Unfortunately I’ve already got boost-devel
installed (v1.33.1). I can see there’s a newer version of boost
available (1.45) but it’s not available via yum… if I can work out
how to install it I will, but before I spend ages on that do you think
that that minor update would fix the issue?

Regards,
Richard


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


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de


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


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


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


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de