在PostgreSQL 9.3上安装PL / Ruby

我想使用PL / Ruby过程语言,但似乎git存储库维护得不是很好: https : //github.com/Absolight/postgresql-plruby/tree/fixup-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。

请检查您是否正在从分支fixup-9-3编译该源并运行postgresql版本9.3

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

因为从master分支安装时我几乎有同样的问题。 还尝试安装libpq-dev。 我正在使用OSX 10.10所有我需要做的安装PostgreSQL库是brew install postgresql ,这在我的机器上工作。