Problem on ./GenerateProjectFiles.sh when building Unreal Engine

Hi everyone, I have a problem when building UnrealEngine for AirSim following this.
When I run this command: proxychains4 ./GenerateProjectFiles.sh, the following problem happens:

While compiling /opt/data/private/ypz/AirSim/UnrealEngine/Engine/Intermediate/Build/BuildRules/UE4Rules.dll:

error : [proxychains] DLL init: proxychains-ng 4.14-git-8-gb8fa2a7
error : [proxychains] DLL init: proxychains-ng 4.14-git-8-gb8fa2a7
ERROR: Unable to compile source files.

Then, I rerun this command, the following problem occurs:

ERROR: Unable to instantiate instance of ‘BenchmarkToolTarget’ object type from compiled assembly ‘UE4ProgramRules’. Unreal Build Tool creates an instance of your module’s ‘Rules’ object in order to find out about your module’s requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> UnrealBuildTool.BuildException: GetBuildPlatform: No BuildPlatform found for Linux
at UnrealBuildTool.UEBuildPlatform.GetBuildPlatform (UnrealBuildTool.UnrealTargetPlatform InPlatform, System.Boolean bInAllowFailure) [0x0003e] in :0
at UnrealBuildTool.TargetRules…ctor (UnrealBuildTool.TargetInfo Target) [0x002fd] in :0
at BenchmarkToolTarget…ctor (UnrealBuildTool.TargetInfo Target) [0x00000] in <7d89c5f175824ae6bbe453be27c8e90a>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <98fac219bd4e453693d76fda7bd96ab0>:0
— End of inner exception stack trace —
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in <98fac219bd4e453693d76fda7bd96ab0>:0
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
at System.Reflection.MonoCMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <98fac219bd4e453693d76fda7bd96ab0>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance (System.String TypeName, UnrealBuildTool.TargetInfo TargetInfo) [0x00093] in :0

And I have tried several times, the same problem happens all the time.
I’m installing it on a remote server. Its OS is Ubuntu 18.04. And the version of UnrealEngine is 4.24. I was using proxychains4 tool to git clone and ./Setup.sh (the first two steps went well). Actually, even on my laptop, same problem happens. Do you know how to fix this?
Thank you for your help!!