[pgrouting-users] error on routing_dd.sql

Stephen Woodbridge woodbri at swoodbridge.com
Tue Aug 16 13:48:34 EDT 2011


On 8/16/2011 11:36 AM, Jules Kouadio wrote:
> Hi . Can someone help me ?
> When i execute :
> psql -f /usr/share/pgrouting/routing_dd.sql routing
> I get this error :
>
> psql:/usr/share/pgrouting/routing_dd.sql:27:
> ERROR: could not load library "/ usr / lib / pgsql / librouting_dd.so"
> libCGAL.so.2: Failed address (mapping) segement of the shared object:
> Permission denied

This sounds like the permissions or ownership issues on the file and 
need to set them correctly. On my Debian Lenny system I have:

woodbri at mappy:/u/www/html/routing/leaddog$ locate libCGAL
/usr/lib/libCGAL.a
/usr/lib/libCGAL.so
/usr/lib/libCGAL.so.1
/usr/lib/libCGAL.so.1.0.1
/usr/lib/libCGAL.so.2
/usr/lib/libCGAL.so.2.0.1
/usr/lib/libCGALPDB.a
/usr/lib/libCGALPDB.so
/usr/lib/libCGALPDB.so.2
/usr/lib/libCGALPDB.so.2.0.1
/usr/lib/libCGALQt.a
/usr/lib/libCGALQt.so
/usr/lib/libCGALQt.so.2
/usr/lib/libCGALQt.so.2.0.1
/usr/lib/libCGALcore++.a
/usr/lib/libCGALcore++.so
/usr/lib/libCGALcore++.so.2
/usr/lib/libCGALcore++.so.2.0.1
/usr/lib/libCGALimageIO.a
/usr/lib/libCGALimageIO.so
/usr/lib/libCGALimageIO.so.2
/usr/lib/libCGALimageIO.so.2.0.1
woodbri at mappy:/u/www/html/routing/leaddog$ ls -l /usr/lib/libCGAL.so*
lrwxrwxrwx 1 root root     16 2009-03-24 19:34 /usr/lib/libCGAL.so -> 
libCGAL.so.2.0.1
lrwxrwxrwx 1 root root     16 2007-11-25 18:19 /usr/lib/libCGAL.so.1 -> 
libCGAL.so.1.0.1
-rw-r--r-- 1 root root 173672 2007-03-25 17:03 /usr/lib/libCGAL.so.1.0.1
lrwxrwxrwx 1 root root     16 2009-03-24 19:34 /usr/lib/libCGAL.so.2 -> 
libCGAL.so.2.0.1
-rw-r--r-- 1 root root 215664 2008-06-23 08:02 /usr/lib/libCGAL.so.2.0.1

You should have something similar. You might try something like:

sudo chown root.root /usr/lib/libCGAL.so*
sudo chmod 644 /usr/lib/libCGAL.so.2.0.1
sudo ldconfig

or:

su
chown root.root /usr/lib/libCGAL.so*
chmod 644 /usr/lib/libCGAL.so.2.0.1
ldconfig
exit


-Steve W

> Note : all is wright for
>   /usr/share/pgrouting/routing_core.sql
>   /usr/share/pgrouting/routing_core_wrappers.sql
> /usr/share/pgrouting/routing_topology.sql
> /usr/share/pgrouting/matching.sql
> /usr/lib/pgsql/librouting_tsp.so
> /usr/share/pgrouting/routing_tsp.sql
> /usr/share/pgrouting/routing_tsp_wrappers.sql
>
> Thanks .
> *
> *
>
>
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users



More information about the Pgrouting-users mailing list