我在try 安装PostgreSQL时遇到此错误

终端屏幕截图

1

这是我第二次try 安装PostgreSQL以使用Apache/Age扩展.它在我的Arch Linux上可以用,但在我的Ubuntu上不行.

它会发生:

checking host system type... x86_64-pc-linux-gnu
checking which template to use... linux
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/marcos/postgresql-11.18/postgresql-11.18':
configure: error: C compiler cannot create executables
See `config.log' for more details```


I expected the informations about the compilation with a success.

推荐答案

根据您的屏幕截图,这可能是由于许多问题造成的,例如缺少或不正确安装C编译器 我的建议是判断所有依赖项正确安装的C编译器的位置.

sudo apt-get install gcc

有关更多详细信息,请查看config.log文件 在这里,您将获得C编译器有问题的详细信息

通过运行以下命令判断C版本

gcc --version

Postgresql相关问答推荐

利用PostgreSQL查询中表的顺序来计算包含每次时间的时间范围

Postgs SQL用于比较两个表之间的数据并填充到目标中

PostgreSQL:动态SELECT查询

在 postgres/presto/AWS-Athena 中,与 array_agg( (col1, col2) ) 相反的是什么来获得每组多行?

这个 Supbase 查询在 SQL ( Postgresql ) 中的类似功能是什么

联合所有 postgresql Select 子句保留顺序

我应该使用哪个 postgresql 包?

在查询中的复合外键/主键列上连接表

mysql_insert_id 替代 postgresql

如何防止materialized 视图在 pg_restore 期间刷新?

如何在 Postgresql 中正确使用 FETCH FIRST?

从 Select 中创建一个临时表,如果表已经存在则插入

Rails ActiveRecord - 如何获取两个日期之间的记录

如何在 psql 控制台中打印当前工作目录?

如何在 plpgsql 中使用记录类型变量?

如何使用 WITH RECURSIVE 子句进行 Select

具有 DEFAULT NULL 的 MySQL 列 ?

如何在Postgres中分组并返回总和行

PostgreSQL:如果不存在则创建表 AS

使用 Spring、Hibernate 和 C3P0 管理多租户 Web 应用程序中的连接池