|
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
gmake
on non-GNU based systems, but is normally referred
to as just
make
on GNU-based systems such as Linux. For consistency, we will refer to it as
gmake
throughout the rest of this book.
We recommend that you use at least
gmake
version 3.76.1 or higher when compiling
PostgreSQL. To verify the existence and correct version number of
gmake
, type the command
shown in Example 2-1.
Example 2-1. Verifying GNU make
$
gmake --version
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
PARTICULAR PURPOSE.
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
https://gcc.gnu.org
.
To check for the existence and version of GCC, enter
the command shown in Example 2-2.
Example 2-2. Verifying GCC
$
gcc --version
2.95.3
- GNU zip and tar
-
GNU zip is also called
gzip
. GNU zip is a compression utility that can compress
as well as decompress files. All compressed, or
zipped
, files made with
gzip
have a
.gz
extension. You can test for the existence of the
gzip
program with the
gzip --version
command.
In addition to
gzip
, you will require a copy of
tar
, a utility used to
group several files and directories into a single archive, as well as to unpack these archives onto the filesystem.
An archived
tar
output file will typically contain a
.tar
extension. Files
that are both archived by
tar
and compressed by
gzip
often have a
.tar.gz
compound extension, as is the case with the included PostgreSQL source distribution. You
can test for
tar
with the
tar --version
command.
Example 2-3. Verifying gzip and tar
$
gzip --version
gzip 1.3
(1999-12-21)
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.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H
Written by Jean-loup Gailly.
$
tar --version
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.
|
|