如何在macosx10.5上安装plpython?

2024-06-07 23:45:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚刚在macosx10.5上安装了postgresql8.3.4(使用端口),但是我不知道如何启用PL/Python。当我运行CREATE LANGUAGE plpythonu时,我得到以下错误:

ERROR:  could not access file "$libdir/plpython": No such file or directory
STATEMENT:  CREATE LANGUAGE plpythonu;
psql:<stdin>:18: ERROR:  could not access file "$libdir/plpython": No such file or directory

我怎样才能修好它?理想情况下,我宁愿避免编译没有port或类似内容的postgre。在

Thia运行pg_config的输出:

^{pr2}$

(几天前我刚从Linux切换到Mac。。。在Ubuntu中,像以前那样的东西只能工作,所以我很迷茫。)


Tags: or端口noaccesscreatenoterrorlanguage
1条回答
网友
1楼 · 发布于 2024-06-07 23:45:07

愚蠢的我:

[lib/postgresql83] > variants postgresql83
 postgresql83 has the variants:
    universal
    python: add support for python
    krb5: add support for Kerberos 5 authentication
    perl: add Perl support

(我已经universal。)

这意味着您必须安装正确的PostgreSQL变体才能使python函数正常运行。在

^{pr2}$

相关问题 更多 >

    热门问题