You are on page 1of 1

The following software packages are required for building PostgreSQL:

GNU make version 3.80 or newer is required; other make programs or older GNU make
versions will not work. (GNU make is sometimes installed under the name gmake.) To
test for GNU make enter:

[root@ip-172-31-23-226 tmp]# 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-redhat-linux-gnu


[root@ip-172-31-23-226 tmp]#

You need an ISO/ANSI C compiler (at least C89-compliant). Recent versions of GCC
are recommended, but PostgreSQL is known to build using a wide variety of compilers
from different vendors.

[root@ip-172-31-23-226 tmp]# rpm -qa gcc


gcc-4.4.7-16.el6.x86_64
[root@ip-172-31-23-226 tmp]#

tar is required to unpack the source distribution, in addition to either gzip or


bzip2.

The GNU Readline library is used by default. It allows psql (the PostgreSQL command
line SQL interpreter) to remember each command you type, and allows you to use
arrow keys to recall and edit previous commands. This is very helpful and is
strongly recommended. If you don't want to use it then you must specify the --
without-readline option to configure. As an alternative, you can often use the BSD-
licensed libedit library, originally developed on NetBSD. The libedit library is
GNU Readline-compatible and is used if libreadline is not found, or if --with-
libedit-preferred is used as an option to configure. If you are using a package-
based Linux distribution, be aware that you need both the readline and readline-
devel packages, if those are separate in your distribution.

The zlib compression library is used by default. If you don't want to use it then
you must specify the --without-zlib option to configure. Using this option disables
support for compressed archives in pg_dump and pg_restore.

[root@ip-172-31-23-226 ~]# rpm -ivh http://yum.pgrpms.org/9.6/redhat/rhel-6-


x86_64/pgdg-redhat96-9.6-1.noarch.rpm
Retrieving http://yum.pgrpms.org/9.6/redhat/rhel-6-x86_64/pgdg-redhat96-9.6-
1.noarch.rpm
warning: /var/tmp/rpm-tmp.I7N3ET: Header V4 DSA/SHA1 Signature, key ID 442df0f8:
NOKEY
Preparing... ########################################### [100%]
1:pgdg-redhat96 ########################################### [100%]
[root@ip-172-31-23-226 ~]#

You might also like