After using the
configure
command, you may begin compiling the PostgreSQL source by entering the
gmake
command.
Note: On Linux machines, you should be able to use
make
instead of
gmake
. BSD
users should use
gnumake
.
Example 2-7. Compiling the source with GNU make
[postgres@host postgresql-7.1.3]#
gmake
gmake -C doc all
gmake[1]: Entering directory /usr/local/src/postgresql-7.1.3/doc'
gmake[1]: Nothing to be done for all'.
gmake[1]: Leaving directory /usr/local/src/postgresql-7.1.3/doc'
gmake -C src all
gmake[1]: Entering directory /usr/local/src/postgresql-7.1.3/src'
gmake -C backend all
gmake[2]: Entering directory /usr/local/src/postgresql-7.1.3/src/backend'
gmake -C utils fmgroids.h
gmake[3]: Entering directory /usr/local/src/postgresql-7.1.3/src/backend/utils'
[...]
At this point, depending on the speed of your machine, you may want to get some coffee because the PostgreSQL
compilation could take 10 minutes, an hour, or even more. After the compilation has finished, the following message should
appear:
All of PostgreSQL is successfully made. Ready to install.