开发者社区> 问答> 正文

centos 6.2 编译 postgresql 9.3.2 错误?报错

在centos 6.2 编译 postgresql 9.3.2 报错。

直接运行 ./configure

报错:

checking test program... failed
configure: error:
Could not execute a simple test program.  This may be a problem
related to locating shared libraries.  Check the file 'config.log'
for the exact reason.

config.log 里面有下面几种错误

conftest.c: In function 'main':
conftest.c:22: error: 'choke' undeclared (first use in this function)
conftest.c:22: error: (Each undeclared identifier is reported only once
conftest.c:22: error: for each function it appears in.)
conftest.c:22: error: expected ';' before 'me'

cc1: error: unrecognized command line option "-fexcess-precision=standard"

conftest.c:17:28: error: ac_nonexistent.h: No such file or directory

...............................

google了下,没有直接相关的错误信息,但有类似的源码编译的错误,都说是 gcc 编译器的原因。

我用的gcc 是yum安装的 4.4.7版本

请问谁知道怎么解决呢?


展开
收起
爱吃鱼的程序员 2020-06-22 13:26:44 713 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    试下pg9.3.1看看,我在CentOS6.4下安装没问题也试过的,不行。开始安装了9.3.2成功了的,后来装一个插件的时候搞错了,卸载重装的时候就成这样了<divclass="ref">

    引用来自“Xtay”的答案

    <divclass=ref_body>试下pg9.3.1看看,我在CentOS6.4下安装没问题哎,解决了,结贴。重新安装了下gcc编译器

    2020-06-22 13:27:01
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
2023云栖大会:和客户一起玩转PolarDB新特性 立即下载
2023云栖大会:PolarDB for AI 立即下载
2023云栖大会:AnalyticDB PostgreSQL 立即下载