Steps in installing Gluster 3.7 and below

If you are planning to install GlusterFS from the website (not clone from git repo). Try to follow the steps from readthedocs. In the final step, which is

make install

If you face a problem such as:

Making install in examples
/bin/mkdir -p '/usr/local/lib/python2.7/dist-packages/gluster'
/usr/bin/install -c -m 644 __init__.py gfapi.py
'/usr/local/lib/python2.7/dist-packages/gluster'
../../py-compile: Missing argument to --destdir.
make[3]: *** [install-pygfapiPYTHON] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Add the destdir option by doing

make install DESTDIR=/

Thanks to anoopcs (IRC username).

I notice many people have the same problem and post it.