0

当我尝试安装 Ruby gem sequel_pg 时,我收到以下错误消息:

~$ sudo gem update
Updating installed gems
Updating sequel_pg
Building native extensions.  This could take a while...
ERROR:  Error installing sequel_pg:
ERROR: Failed to build gem native extension.
   /usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for PQsetSingleRowMode()... no
creating Makefile

make
compiling sequel_pg.c
sequel_pg.c: In function ‘spg_timestamp_error’:
sequel_pg.c:279:3: error: format not a string literal and no format arguments [-                Werror=format-security]
cc1: some warnings being treated as errors
make: *** [sequel_pg.o] Error 1

Gem files will remain installed in /var/lib/gems/1.9.1/gems/sequel_pg-1.6.5 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/sequel_pg-1.6.5/ext/sequel_pg/gem_make.out
Nothing to update

我正在运行 Lubuntu 13.04。depencies: pg 和 sequel 已安装。还安装了包文件 postgresql 和 postgresql-server-dev-9.1

有人有线索吗?

4

1 回答 1

0

此错误已通过此补丁在宝石大师中修复。您应该等待新版本或安装 gem 的头版本。

于 2013-05-10T22:06:21.227 回答