2010-08-25 38 views
11

我在Ubuntu机器上安装了postgreSQL版本8.3。这是通过apt get安装的。当我试图来源,有写了一些PLSQL函数的数据库转储,我得到了下面的错误 -如何将python支持添加到已安装的postgreSQL中?

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

当我试图启用特定数据库的支持Python,我得到了另一个错误 -

$ createlang plpythonu <dbname> -U postgres 
createlang: language installation failed: ERROR: could not access file "$libdir/plpython": No such file or directory 

有没有一种方法可以添加对python的支持而无需重新安装postgreSQL?

+0

为什么这个封闭的,而不是被迁移到说,serverfault? – joxl 2015-07-28 19:31:34

回答

4

安装postgresql-plpython-8.3

+1

怎么样? ........... – dfrankow 2012-01-30 16:44:14

4
sudo apt-get install postgresql-plpython-8.3 

或对PostgreSQL 8.4:

sudo apt-get install postgresql-plpython-8.4 
相关问题