gpt4 book ai didi

postgresql - make check 无法在 Postgres 8.4.2 中启动

转载 作者:行者123 更新时间:2023-11-29 12:00:17 25 4
gpt4 key购买 nike

尝试在我在 Amazon EC2 上创建的新 Ubuntu 实例上运行 PostgreSQL 8.4.2 的回归套件时,我遇到了一个奇怪的错误。

我可以成功配置 PostgreSQL:

$ ./configure
[ Output not shown ]
$ tail -1 config.log
configure: exit 0

构建得很好:

$ make
[ Ouput clipped ]
All of PostgreSQL successfully made. Ready to install.

但是当我尝试运行回归套件时,我收到一个错误:

$ make check
[ Ouput clipped ]
make[2]: Entering directory `/home/ubuntu/stock/postgresql-8.4.2/src/test/regress'
You must use GNU make to use Postgres. It may be installed
on your system with the name 'gmake'.

但是,我相信我正在运行 GNU Make:

$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

$ ls -l `which gmake`
lrwxrwxrwx 1 root root 13 Feb 6 17:41 /usr/bin/gmake -> /usr/bin/make

我看到在src/test/regress目录下,有一个Makefile:

$ cat src/test/regress/Makefile 
# The Postgres make files exploit features of GNU make that other makes
# do not have. Because it is a common mistake for users to try to build
# Postgres with a different make, we have this make file that does nothing
# but tell the user to use GNU make.

# If the user were using GNU make now, this file would not get used because
# GNU make uses a make file named "GNUmakefile" in preference to "Makefile"
# if it exists. Postgres is shipped with a "GNUmakefile".

all install clean check installcheck:
@echo "You must use GNU make to use Postgres. It may be installed"
@echo "on your system with the name 'gmake'."

该 Makefile 中的注释表明该目录中应该有一个名为 GNUmakefile 的文件,但没有:

$ ls src/test/regress/*akefile 
src/test/regress/Makefile

顶层目录下有一个GNUMakefile:

$ ls *akefile
GNUmakefile Makefile

即使我通过-f GNUmakefile 强制makemake check 使用GNUmakefile,发生同样的错误。

请注意,我可以在我的家用机器上运行回归套件。

有人知道为什么它不能在 EC2 实例上运行吗?

编辑: 在我的家用机器上,我运行的是 Ubuntu 12.04。 EC2 实例正在运行 13.10。两台机器都运行 make 版本 3.81。

最佳答案

您的下载或结帐一定是一团糟。如您所料,那里应该有一个 src/test/regress/GNUmakefile。尝试重新下载。

关于postgresql - make check 无法在 Postgres 8.4.2 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21631612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com