plpython,在 postgresql 中没有这样的目录错误(ubuntu)

plpython, no such directory error in postgresql (ubuntu)

我安装了以下软件包:

sudo apt-get install postgresql-plpython-8.4

但在使用时:

user=# create language plpythonu;

抛出错误:

ERROR:  could not access file "$libdir/plpython2": No such file or directory

我在这里错过了什么?

我使用的是 psql 9.1 并正在安装 postgresql-plpython-8.4。 应该有 运行 这个:

sudo apt-get install postgresql-plpython-9.1