在OSX中让plperl在9.3上工作

时间:2014-01-02 20:29:36

标签: postgresql postgresql-9.3

我正在尝试在我从OSX Mavericks上的Enterprise DB下载的Postgres 9.3软件包上安装plperl。 - 每次发出

create language plperl

我得到了

postgres-# ;
The connection to the server was lost. Attempting reset: Failed.
!>

编辑:日志文件显示

2014-01-02 14:08:50 CST LOG:  server process (PID 4843) was terminated by signal 11: Segmentation fault
2014-01-02 14:08:50 CST DETAIL:  Failed process was running: CREATE EXTENSION IF NOT EXISTS plperl WITH SCHEMA pg_catalog;
2014-01-02 14:08:50 CST LOG:  terminating any other active server processes
2014-01-02 14:08:50 CST WARNING:  terminating connection because of crash of another server process
2014-01-02 14:08:50 CST DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2014-01-02 14:08:50 CST HINT:  In a moment you should be able to reconnect to the database and repeat your command.
2014-01-02 14:08:50 CST WARNING:  terminating connection because of crash of another server process
2014-01-02 14:08:50 CST DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2014-01-02 14:08:50 CST HINT:  In a moment you should be able to reconnect to the database and repeat your command.

我模糊地回忆起不得不搞乱使用activeperl库来安装9.2,但我想也许有人在这里知道在OSX上运行并运行的最佳方法。

很遗憾,但我真的不需要plperl,除了perl具有sprintf函数的最佳实现(使用一些更高级的格式化选项),但我离题了。

1 个答案:

答案 0 :(得分:1)

要安装plperl,必须安装plperl 5.14,该版本不高或低。 Activestate已经变得很困难,因为他们已经改变了所有的许可,你现在必须支付访问这个旧版本的费用(这是postgres可以免费使用许可证的最后一个版本)。幸运的是,即使他们从他们的下载网站上擦除了5.14,CNET仍然可以使用它。它可以在这里下载:

ActivePerl 5.14 OSX /x86