Hi,exists instructions for building LibreOffice from tarballs not from git clone. I’ve tried to build version 4.0.6 and got error: cannot find install-sh
Why do you try to build 4.0.6 when 4.1.4.2 exists already. May I suggest you to join the dev team?
This is mainly end-user forum, for such a things like building from source I suggest to contact developers. See mailing list: https://www.libreoffice.org/developers/
If you would like just to install LibreOffice there are binaries available to download/install from https://www.libreoffice.org/download
or if you would like to install on Ubuntu (you didn’t provide enough info what is your operating system):