2014-10-26 67 views
2

安装PL /红宝石我想使用PL/Ruby的程序语言,但它似乎Git仓库,不能很好地维护: https://github.com/Absolight/postgresql-plruby/tree/fixup-9-3上的PostgreSQL 9.3

当我创造新的语言:

create function plruby_call_handler() returns language_handler 
as '/var/lib/postgresql/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/x86_64-linux/plruby' 
language 'c'; -- Warning: the 'c' has to be lowercase, unlike the example on git. 

我得到以下错误:

ERROR: could not load library "/var/lib/postgresql[...]plruby": undefined symbol: plruby_s_load 

我在Ubuntu 14.10使用Ruby 2.1.4在PostgreSQL 9.3。

+0

你能指定你的PostgreSQL服务器使用哪个操作系统吗? – vyegorov 2014-10-29 13:34:22

+0

Ubuntu 14.10,问题更新。 – Victor 2014-10-29 19:36:19

回答

2

请检查您是否编译从分支修正-9-3是源和运行PostgreSQL 9.3版本

git clone https://github.com/Absolight/postgresql-plruby.git 
    cd postgresql-plruby 
    git checkout fixup-9-3 

因为我从主分支安装时几乎同样的问题。另外尝试安装libpq-dev。我使用的是OSX 10.10,我只需要安装PostgreSQL库就可以使用brew install postgresql,而且这个工作可以在我的机器上运行。