我正在学习 PostgreSQL。 在将 pgrouting 安装到 Ubuntu 11.10 后,我正在尝试使用 Dijkstra 算法。
CREATE OR REPLACE FUNCTION shortest_path(sql text, source_id integer,
target_id integer, directed boolean, has_reverse_cost boolean)
RETURNS SETOF path_result AS
'$libdir/libdijkstra.dll'
LANGUAGE 'C' IMMUTABLE STRICT
ERROR: could not access file "$libdir/libdijkstra.dll": No such file or directory'
如果可能,请指导我从安装到使用逐步使用它。
最佳答案
根据评论,这是由于尝试在 Linux 上使用 Windows 库造成的。在 http://pgrouting.org/download.html 下载新版本并使用那里的库,或从源代码构建(可在同一站点获得)。
关于postgresql - 在 Ubuntu 11.10 中使用 Dijkstra 算法和 postgreSQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10753941/