2010-08-25 69 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 
相關問題