[GIS] how to solve “could not access file ‘$libdir/librouting'” problem in ubuntu 12.04

pgrouting

I am trying to install pgrouting in my ubuntu 12.04 machine using the instructions of this link. However, when I try to execute the following command based on step 3, it generates some error.

command

psql -U postgres -f /media/resource/pgrouting/pgrouting/core/sql/routing_core.sql routing

Output:

psql:routing_core.sql:21: ERROR: type "path_result" already exists

psql:routing_core.sql:22: ERROR: type "vertex_result" already exists

psql:routing_core.sql:32: ERROR: could not access file
"$libdir/librouting": No such file or directory

psql:routing_core.sql:43: ERROR: could not access file "$libdir/librouting": No such file or directory

psql:routing_core.sql:53: ERROR: could not access file "$libdir/librouting": No such file or directory

CREATE FUNCTION

How can I solve this problem?

Best Answer

In case you don't need to make changes to the pgRouting source and compile yourself, why don't you use the Ubuntu packages? See: http://workshop.pgrouting.org/chapters/installation.html

Otherwise the errors above might occur because your build failed. Have you checked, that there was no build error?

Related Question