[pgrouting-users] How to install pgRouting on Mac OSX 10.7 with
PostgreSQL 9.0
William Kyngesburye
woklist at kyngchaos.com
Tue Oct 11 10:22:30 EDT 2011
I don't know about that one. I may have run into it long ago, but to be honest I gave up on a configured build and use custom makefiles now. I think the problem was that cmake doesn't handle the PGSX module compilation from Postgres, so it has to figure out compilation details on its own.
On Oct 11, 2011, at 9:14 AM, Gis Mage wrote:
> Ok, did that.
> New error now.
>
> [ 16%] Building CXX object
> core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o
> i686-apple-darwin11-llvm-g++-4.2: -lgmp: linker input file unused
> because linking not done
> Linking CXX shared module ../../lib/librouting.so
> ld: file not found: POSTGRESQL_EXECUTABLE-NOTFOUND
> collect2: ld returned 1 exit status
> make[2]: *** [lib/librouting.so] Error 1
> make[1]: *** [core/src/CMakeFiles/routing.dir/all] Error 2
> make: *** [all] Error 2
>
> Is POSTGRESQL_EXECUTABLE-NOTFOUND an environment variabe?
>
>
>
> 2011/10/11 William Kyngesburye <woklist at kyngchaos.com>:
>> I forgot about that new one, it didn't make it into my notes.
>>
>> edit edge_visitors.hpp and delete the line that includes is_same.hpp. it's not really used anyways.
>>
>> On Oct 11, 2011, at 4:50 AM, Gis Mage wrote:
>>
>>> Hi again!
>>> Thanks for the tip. I've changed all includes with /boost in that
>>> files to absolute paths like
>>> /opt/local/include/boost
>>>
>>> And now I get a different error:
>>>
>>> $ make
>>>
>>> Scanning dependencies of target routing
>>> [ 16%] 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:61:
>>> error: /opt/local/include/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
>>>
>>> Looks like the problem is with the is_same.hpp file.
>>> When I type:
>>>
>>> $ locate is_same.hpp
>>> /opt/local/include/boost/type_traits/is_same.hpp
>>>
>>> What else do I need to change?
>>>
>>>
>>> 2011/10/10 William Kyngesburye <woklist at kyngchaos.com>:
>>>> 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.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
More information about the Pgrouting-users
mailing list