I am trying to run the sql file of pgrouting-> routing_core.sql in mac. However it displays the following error
psql:routing_core.sql:32: Error: could not access file "$libdir/librouting": No such file or directory
How can I remove this?
|
|
|
You have to modify the CMakeCache.txt in the pgrouting folder and update the line which contains POSTGRESQL_EXECUTABLE:FILEPATH=/usr/lib/postgresql/9.1/lib. After you execute the command cmake -DWITH_TSP=ON -DWITH_DD=ON and the lib librouting.so is copied to the right folder. |
|||
|
|
|
I am not familiar with mac, but check the following things.
|
|||
|
|
Its installation issue. You didn't copy the dll files. You should check the installation instructions because different versions of pgrouting are installed differently. If I remember correctly, these are 3 files that you missed. |
|||
|
|
|
Probably something went wrong when you compiled pgRouting as the libraries are not where they should be. |
|||
|
|