【问题标题】:Postgres plpythonu extension doesn't exist in /usr/pgsql-9.3/share/extension/usr/pgsql-9.3/share/extension 中不存在 Postgres plpythonu 扩展
【发布时间】:2014-08-29 07:22:31
【问题描述】:

当我尝试使用

启用plythonu
CREATE EXTENSION plpythonu

我得到错误

ERROR:  could not open extension control file "/usr/pgsql-9.3/share/extension/plpythonu.control": No such file or directory

扩展文件夹没有同名的文件。

有下载链接吗?如何添加plpythonu?

【问题讨论】:

    标签: postgresql


    【解决方案1】:

    PL/Python 未安装。在 PostgreSQL 的大多数 Linux 包中,它是一个单独的包。

    如果您在 Debian/Ubuntu 上使用 apt.postgresql.org (PGDG) 软件包:

    apt-get install postgresql-contrib-9.3 postgresql-plpython-9.3
    

    如果您在 Ubuntu 或 Debian 上使用他们的库存 PostgreSQL 软件包:

    apt-get install postgresql-contrib postgresql-plpython
    

    如果您在 Fedora/CentOS/RhEL 上使用来自 yum.postgresql.org 的 PGDG 软件包:

    yum install postgresql93-contrib postgresql93-plpython
    

    如果您在 Fedora/CentOS/RHEL 上使用库存软件包:

    yum install postgresql-contrib postgresql-plpython
    

    contrib 包不是必需的,但您可能也需要它们。

    【讨论】:

    • 谢谢。刚刚想通了,它现在可以工作了。我仍然会选择你的答案作为正确答案..
    猜你喜欢
    • 2016-03-12
    • 2019-04-20
    • 2014-11-23
    • 1970-01-01
    • 2014-01-08
    • 2015-12-31
    • 2014-12-15
    • 2012-03-19
    • 2019-11-11
    相关资源
    最近更新 更多