[pgrouting-users] osm2pgrouting: errors on importing routing_core.sql

Frank Glück frankimglueck at gmx.de
Wed Aug 12 11:33:06 EDT 2009


Hi,

the "How to use" of osm2pgrouting at
http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2008/ch10 says among others:

psql -U postgres -f /usr/share/postlbs/routing_core.sql osm
psql -U postgres -f /usr/share/postlbs/routing_core_wrappers.sql osm
psql -U postgres -f /usr/share/postlbs/routing_topology.sql osm

That tutorial is given for Ubuntu 8.04. But on my Debian Lenny I have no
directory /usr/share/postlbs. The only files named routing_core.sql,
routing_core_wrappers.sql and routing_topology.sql are situated in my
original download directory for the pgrouting at
/var/src/pgrouting/pgrouting/core/sql. Is that right? Or have I still to do
anything with these files after Make? Because when I adjust the path to
routing_core.sql in the first above command to the right place I get these
errors:

psql:/var/src/pgrouting/pgrouting/core/sql/routing_core.sql:32: ERROR:
could not access file "$libdir/librouting": No such file or directory
psql:/var/src/pgrouting/pgrouting/core/sql/routing_core.sql:43: ERROR:
could not access file "$libdir/librouting": No such file or directory
psql:/var/src/pgrouting/pgrouting/core/sql/routing_core.sql:53: ERROR:
could not access file "$libdir/librouting": No such file or directory

But the import of the other files routing_core_wrappers.sql and
routing_topology.sql ran in success! Only routing_core.sql makes problems.
What can I do with this?

Thanks,
Frank




More information about the Pgrouting-users mailing list