You will most likely have some of the required software packages already installed on your system, if not all of
them. These packages are as follows:
- GNU make
GNU make is commonly known as
on non-GNU based systems, but is normally referred
to as just
on GNU-based systems such as Linux. For consistency, we will refer to it as
throughout the rest of this book.
We recommend that you use at least
version 3.76.1 or higher when compiling
PostgreSQL. To verify the existence and correct version number of
, type the command
shown in Example 2-1.
Example 2-1. Verifying GNU make
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
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
Report bugs to <[email protected]>.
- ISO/ANSI C Compiler
There are numerous ISO/ANSI C compilers available. The recommended compiler for PostgreSQL is the GNU
C Compiler, although PostgreSQL has been known to build with compilers from different vendors. At the time of this
writing, the most commonly distributed versions of GCC are 2.95 and 2.96 (RedHat Linux 7.x and Mandrake Linux 8.x).
If you do not currently have GCC installed, you can download it by visiting the GNU website at
To check for the existence and version of GCC, enter
the command shown in Example 2-2.
Example 2-2. Verifying GCC
- GNU zip and tar
GNU zip is also called
. GNU zip is a compression utility that can compress
as well as decompress files. All compressed, or
, files made with
extension. You can test for the existence of the
program with the
In addition to
, you will require a copy of
, a utility used to
group several files and directories into a single archive, as well as to unpack these archives onto the filesystem.
output file will typically contain a
that are both archived by
and compressed by
often have a
compound extension, as is the case with the included PostgreSQL source distribution. You
can test for
Example 2-3. Verifying gzip and tar
Copyright 1999 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H
Written by Jean-loup Gailly.
tar (GNU tar) 1.13.17
Copyright 2000 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.