Linux editor - webgl build fail - Win32Exception?

System.ComponentModel.Win32Exception (2): No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 423
   at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 299
   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 355
   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 331
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/ParallelFor.cs:line 73

Odds on if I could start the editor from the command line (without the hub starting) - I’d be able to see what it was trying to run!

I’ve got clang installed which pulls in llvm, also installed default-jre, mono-complete, libtinfo

This was happening on Ubuntu LTS and after upgrading to 20.10 it still happens.

forgot to mention this is with Unity 2021.1.01b

i am getting the same issue in unity 2020.3.5f1

I found the solution

  1. Install python2 (it should be run by typing python2 not python )
  2. pip install Brotli

In Unity 2020.3.0f1 on Linux Mint 20 it worked when I installed python2, but installing Brotli as Compression Format did not work, unfortunately. For the time being I disabled Compression Format in the Player Settings so I can at least preview the build in firefox.

for 2021.2 this should be fixed in the current alpha