postgresql - 在 Ubuntu 11.10 中使用 Dijkstra 算法和 postgreSQL

标签 postgresql ubuntu-11.10 dijkstra

我正在学习 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/

相关文章:

postgresql - 在 PostgreSQL 中同步两个表

Qt错误: undefined reference to 'gluOrtho2D'

linux - 如何在 ubuntu 11.10 中安装 gcc-4.3?

list - Delphi 中 Dijkstra 最短路径搜索的优化

java - 如何将网格中单元格的邻居存储到优先级队列中

algorithm - 在前向搜索算法中,如果两个项目相等会发生什么?

ruby-on-rails - 在 Rails 中按顺序添加它自己的订单

ruby-on-rails - Sidekiq - 无法在 5.000 秒内获得数据库连接

postgresql - 从点数组创建 postgres postgis 多边形

Java 不能在 ubuntu 11.10 上使用 netbeans IDE 7