I'm running PostgreSQL 9.3.1 on Ubuntu 12.04.4. I'd like to use the plpython language extension but I get an error when I try to use it I get:
ERROR: language "plpythonu" does not exist
When I try to create the extension:
CREATE EXTENSION plpythonu
I get ERROR: could not access file "$libdir/plpython2": No such file or directory
After much searching and digging through blog posts, I've tried installing additional packages, and have copied all the plpython files from /usr/share/postgresql/9.1/extension to /opt/bitnami/postgresql/share/extension where PostgreSQL seems to be looking for them. That at least got me to a point at which PostgreSQL actually sees the available extensions. When I run:
SELECT name, default_version, installed_version FROM pg_available_extensions WHERE name LIKE('plpy*')
I get :
name | default_version | installed_version
------------+-----------------+-------------------
plpython2u | 1.0 |
plpython3u | 1.0 |
plpythonu | 1.0 |
There are still no plpython libraries that I can see in /opt/bitnami/postgresql/lib
. Can anybody help me get through remaining steps to make the extension work? Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…