A compiler is also necessary. GNU Compiler Collection (GCC) is one such toolset that is included in almost all the Unix systems. The
gcc -v command will provide you with the version of
gcc as well as options with which it was configured on the system, as shown in the following screenshot:
We can use the following commands to install the necessary packages if they are missing:
sudo apt-get install build-essential
sudo yum groupinstall 'Development Tools'
The process of building a package from source involves preprocessing the source (including the header files, expanding macros, and so on), compiling, assembly, and linking (linking the libraries). The
make utility automates the process of building the executable from source code. The
make command uses a makefile, which contains rules on how to build the executables.
Other than GNU Make and a compiler, there is nothing else that is really necessary to continue. However, it is better to have at least the following two components:
readline: The GNU
readlinelibrary is very useful once we start using
psql, the PostgreSQL command-line client, which is covered later. Having
readlinehelps us work in a very "bash-like" environment, using Tab to autocomplete/suggest table names and up and down keys to browse command history, and so on and so forth. It also helps to have
zlibin place before we proceed with the installation.
Adding SQL/XML support will also be useful as sooner or later we will want to extract data from tables in an XML format or load data from the XML files to tables. Still, this might not be as useful as the other two, namely,