Postgres-XC can be downloaded from http://sourceforge.net/projects/postgres-xc/files/Version_1.2/. For this book, we have used version 1.2.1 of Postgres-XC, which is based on PostgreSQL 9.3.2.
To compile the code, we have to extract the code using the following command:
tar xvfz pgxc-v1.2.1.tar.gz
Then we can compile the code just like standard PostgreSQL using the following commands:
cd postgres-xc-1.2.1 ./configure --prefix=/usr/local/postgres-xc make make install
Once this has been executed, we can move ahead and configure the cluster.