[pgrouting-users] How to install pgRouting on Mac OSX 10.7 with PostgreSQL 9.0

William Kyngesburye woklist at kyngchaos.com
Mon Oct 10 09:36:41 EDT 2011


Looks like a known issue with recents versions of Boost, some headers were moved.

Edit 3 pgrouting files and change an #include in them:

core/src/shooting_star_boost_wrapper.cpp:

#include <boost/property_map/vector_property_map.hpp>

core/src/edge_visitors.hpp, shooting_star_relax.hpp:

#include <boost/property_map/property_map.hpp>


On Oct 10, 2011, at 4:50 AM, Gis Mage wrote:

> Hi, list!
> 
> I have a OSX Lion 10.7 computer with PostgreSQL 9.0, installed from MacPorts.
> I'm trying to install pgRouting on top.
> 
> MacPorts version of pgRouting is outdated and is available only for
> postgresql 8.2/8.3.
> Homebrew command
> "brew install pgrouting"
> returns "Error: No available formula for pgrouting"
> 
> When trying to compile from source, as described here:
> http://dirkraffel.com/2011/07/06/pgrouting-on-mac-os-x-10-6-8/
> 
> make command returns an error:
> 
> make
> [100%] Building CXX object
> core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o
> In file included from
> /opt/distr/pgrouting/lastsrc/pgRouting-pgrouting-a0c6c18/core/src/shooting_star_search.hpp:28,
>                 from
> /opt/distr/pgrouting/lastsrc/pgRouting-pgrouting-a0c6c18/core/src/shooting_star_boost_wrapper.cpp:27:
> /opt/distr/pgrouting/lastsrc/pgRouting-pgrouting-a0c6c18/core/src/edge_visitors.hpp:9:42:
> error: boost/graph/detail/is_same.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
> 
> Can anyone help me out with that? I really need to install it on my environment.
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.



More information about the Pgrouting-users mailing list