构建Postgres时出错,并且“ ...必须具有有效的64位整数数据类型”

时间:2018-08-10 03:19:02

标签: linux postgresql ubuntu bundle

当我输入此内容时:

$ sudo bundle update

发生错误:

An error occurred while installing do_postgres (0.10.17), and Bundler
cannot continue.
Make sure that `gem install do_postgres -v '0.10.17' --source
'https://rubygems.org/'` succeeds before bundling.

所以我尝试安装do_postgres:

sudo gem install do_postgres

它失败了,所以我检查了日志文件。它显示如下错误:

In file included from /usr/include/postgresql/postgres.h:47:0,
                 from conftest.c:3:
/usr/include/postgresql/c.h:284:2: error: #error must have a working 64-bit integer datatype
 #error must have a working 64-bit integer datatype
  ^~~~~

我不知道如何解决。有人可以帮我吗?

非常感谢!

0 个答案:

没有答案