Gis 找不到Pgrouting函数和geoms类型

Gis 找不到Pgrouting函数和geoms类型,gis,postgresql-9.1,postgis,pgrouting,Gis,Postgresql 9.1,Postgis,Pgrouting,我已经从源代码安装了postgresql 9.1和postgis 2.0。 现在我编译并安装了pgrouting 2.0(搜索依赖项一小时后)。 我在postgres中的数据库上创建了扩展名 我从sql文件pgrouting.sql 但是我需要的函数是pgrouting\u legacy.sql和pgrouting\u dd\u legacy.sql 错误输出为:psql:/usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting_lega

我已经从源代码安装了
postgresql 9.1
postgis 2.0
。 现在我编译并安装了
pgrouting 2.0
(搜索依赖项一小时后)。 我在
postgres
中的数据库上创建了
扩展名

我从sql文件
pgrouting.sql
但是我需要的函数是
pgrouting\u legacy.sql
pgrouting\u dd\u legacy.sql

错误输出为:
psql:/usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting_legacy.sql:299:error:type“geoms”不存在

Postgresql和Postgis运行良好

我遵循了以下文件:


我认为您应该遵循pgRouting 2.0的安装说明,而不是您上面链接的旧1.x。请参见此处:

谢谢您的回答。是我的错。我成功地安装了它,但我试图启动一些pgRouting 2.0中没有的功能,所以我认为安装失败了。