I installed both postgresql and postgis using brew in mac. How can I now install pgrouting. I couldn't install it using brew. Any suggestions?
I think that if you build on MacOSX, pgrouting git-master version is necessary.
$ cd ~/ $ mkdir -p Build/cpp/pgrouting-git $ cd Build/cpp/pgrouting-git $ git clone git://github.com/pgRouting/pgrouting.git . $ mkdir build $ cd build $ cmake -DPOSTGRESQL_INCLUDE_DIR='/usr/local/Cellar/postgresql/9.1.3/include/server' -DBoost_DIR='/usr/local/Cellar/boost/1.49.0' .. $ vi ../core/src/edge_visitors.hpp -- edit as follows. -- #include <boost/graph/detail/is_same.hpp> -- => #include <boost/type_traits/is_same.hpp> $ make $ sudo make install
|show 5 more comments|
You can download Mac OS X installers from this website: http://www.kyngchaos.com/software/postgres
I don't know this is compatible with what you installed using brew, but the PostgreSQL/PostGIS binaries you can get from that website should work well, too.