Linux GenerateProjectFile.sh fail

I am trying to install the engine on Linux.

I successfully runned Setup.sh

Now I am supposed to run GenerateProjectfile.sh of the root folder.

It throw some warnings like:

/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.0,Profile=Client'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.

Then it finish with an error:

+ mono Binaries/DotNET/UnrealBuildTool.exe -makefile
Using gcc version '4.8' (string), 4 (major), 8 (minor), -1 (patch)

*** This version of the engine can only be compiled by clang - refusing to register the Linux toolchain.

Any idea of the problem?

Kind regards,
Adrian M.

Do you have mono installed (see A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums for list of dependencies)? These might not get installed automatically, depending on the distro you run.

Also, you must use Clang compiler for all operations with Unreal Engine under Linux. Please install Clang and retry the building steps, then optionally report back here of any issues.

All the steps are outlined at A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

Mono is installed because it’s just warning about something, but if the version was missing it would be an error. However, your system is wrongly defaulting to GCC rather than clang so you might want to go grab the clang compiler package for your distro.

Correct, Clang was not successfully installed (I though it was). Now it seem to compile correctly.
Thanks you
Kind regards, Adrian M.