![]() |
![]() |
Free Books / Computers / Practical PostgreSQL / | ![]() |
|
![]() |
||||
![]() |
![]() |
|||
![]() |
![]() |
|||
![]() |
||||
|
|
||||
![]() |
![]() |
|||
![]() |
Step 3: Compiling the Source |
![]() |
||
![]() |
||||
![]() |
![]() |
![]() |
||
![]() |
||||
This section is from the "Practical PostgreSQL" book, by John Worsley and Joshua Drake. Also available from Amazon: Practical PostgreSQL.
After using the configure command, you may begin compiling the PostgreSQL source by entering the gmake command.
Example 2-6. Compiling the Source with GNU Make
[root@host postgresql-7.1.2]# gmake gmake -C doc all gmake[1]: Entering directory `/usr/local/src/postgresql-7.1.2/doc' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/local/src/postgresql-7.1.2/doc' gmake -C src all gmake[1]: Entering directory `/usr/local/src/postgresql-7.1.2/src' gmake -C backend all gmake[2]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend' prereqdir=`cd parser/ >/dev/null && pwd` && \ cd ../../src/include/parser/ && rm -f parse.h && \ ln -s $prereqdir/parse.h . gmake -C utils fmgroids.h gmake[3]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend/utils' [...]
|
Make on Linux-Based Systems |
|---|---|
|
Remember that, on Linux-based systems, you can usually just type make in place of gmake . |
|
BSD users |
|---|---|
|
On BSD Systems, GNU Make is called gnumake rather than gmake . |
At this point, depending on the speed of your machine, you may want to get some coffee, because the PostgreSQL compilation could take from 10 minutes, an hour, or more. After the compilation has finished, the following message should appear:
All of PostgreSQL is successfully made. Ready to install.
 
Continue to:
postgresql, psql, relational database, sql, standard, query, programming, administration
![]() |
|
|