It turned out to be an issue with 32 bits version of Linux. Even with chmod 777 the error kept on appearing.
A version 6.0.0. of the installer worked fine, but got into max heap issues addressing memory.
The 6.1.1 installer runs fine on an 64bit image of Ubuntu 16.04, so issue solved!