# Error Compiling Unreal Engine on Arch Linux

**URL:** <https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637>\
**Category:** Getting Started & Setup\
**Tags:** error, unreal-engine, UE5-0, question\
**Created:** [May 5, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637 "2022-05-05T15:04:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentLoneStar007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentLoneStar007](https://forums.unrealengine.com/u/AgentLoneStar007)\
**Post date:** [May 5, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/1 "2022-05-05T15:04:46Z")

</div>

Hi. Upon attempting to run GenerateProjectFiles.sh when compiling Unreal Engine 5, I got this error:

Process terminated. Couldn’t find a valid ICU package installed on the system.

I tried installing the “icu” package on the Arch Linux repository, but it still didn’t work. How do I fix this and successfully compile Unreal Engine?

---

<div class="post-metadata">

**Author:** ![AgentLoneStar007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentLoneStar007](https://forums.unrealengine.com/u/AgentLoneStar007)\
**Post date:** [May 5, 2022, 9:58pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/2 "2022-05-05T21:58:59Z")

</div>

I fixed the problem by installing “libicu50” from the Arch User Repository. Instructions on how to do so:

`sudo pacman -S yay` (Install AUR helper if you don’t already have one.)  
'yay -S libicu50 --noconfirm` (Installs libicu50.)

---

<div class="post-metadata">

**Author:** ![albacrossi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@albacrossi](https://forums.unrealengine.com/u/albacrossi)\
**Post date:** [May 23, 2022, 3:40am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/3 "2022-05-23T03:40:24Z")

</div>

That worked for me too. Any idea why we need that particular version?

---

<div class="post-metadata">

**Author:** ![Cestarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cestarian](https://forums.unrealengine.com/u/Cestarian)\
**Post date:** [May 23, 2022, 6:47am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/4 "2022-05-23T06:47:19Z")

</div>

when I tried to build 5.1 i got a (core dumped) error on the dotnet msbuild line (31) in ./GenerateProjectFiles.sh

Installing this particular version of libicu solved it for me as well.

---

<div class="post-metadata">

**Author:** ![sanitysanitysan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sanitysanitysan](https://forums.unrealengine.com/u/sanitysanitysan)\
**Post date:** [May 24, 2022, 5:56am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/5 "2022-05-24T05:56:16Z")

</div>

I didn’t want to downgrade ICU, so I exported the `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1` variable to enable an invariant culture. I don’t think it’s a good idea for a production pipeline but works for me at the moment.

Either run the following in the terminal window before running the script and every time before running the Editor:

```auto
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

```

Or add the export to the end of your `~/.bashrc` to enable this across all terminals so you don’t have to run it manually next time. This will apply for all new terminal sessions, or to the current one after running `source ~/.bashrc`. If using zsh, use `~/.zshrc` instead of `~/.bashrc`.

I’d rather do the first option, even though I’ll need to run the export in each new terminal session before running the Editor. Applying invariant culture to all dotnet apps doesn’t seem like a good idea to me. Hopefully soon the ICU dependency will be upgraded in the Engine, so doing all that won’t be necessary anymore.

---

<div class="post-metadata">

**Author:** ![LucyVergil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucyVergil](https://forums.unrealengine.com/u/LucyVergil)\
**Post date:** [May 28, 2022, 8:53pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/6 "2022-05-28T20:53:02Z")

</div>

i add this:

```auto
export CLR_ICU_VERSION_OVERRIDE=$(pacman -Q icu | awk '{split($0,a," ");print a[2]}' | awk '{split($0,a,"-");print a[1]}')

```

but now getting more errors:

```auto

./GenerateProjectFiles.sh  ✔ 
Attempting to set up UE pretty printers for gdb (existing UEPrinters.py, if any, will be overwritten)...
        updated UEPrinters.py
        found necessary entries in ~/.gdbinit file, not changing it.

Setting up Unreal Engine 5 project files...

Setting up bundled DotNet SDK
/opt/UnrealEngine-5.0.2-release/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : Der Dienstindex für die Quelle "https://api.nuget.org/v3/index.json" konnte nicht geladen werden. [/opt/UnrealEngine-5.0.2-release/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/opt/UnrealEngine-5.0.2-release/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The SSL connection could not be established, see inner exception. [/opt/UnrealEngine-5.0.2-release/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/opt/UnrealEngine-5.0.2-release/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The remote certificate is invalid according to the validation procedure. [/opt/UnrealEngine-5.0.2-release/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
GenerateProjectFiles ERROR: Failed to build UnrealBuildTool

```

---

<div class="post-metadata">

**Author:** ![TheJarmanitor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheJarmanitor](https://forums.unrealengine.com/u/TheJarmanitor)\
**Post date:** [May 29, 2022, 2:52am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/7 "2022-05-29T02:52:43Z")

</div>

I tried both installing libicu50 and setting globalization to 1 and i’m having the same issue as LucyVergil. I even changed to the 5.0 branch and the problem persists. Maybe is it a bug in the build?

---

<div class="post-metadata">

**Author:** ![laflaizn1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laflaizn1](https://forums.unrealengine.com/u/laflaizn1)\
**Post date:** [May 29, 2022, 9:06pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/8 "2022-05-29T21:06:36Z")

</div>

I’m having this same issue, so far I have tried multiple versions of dotnet sdks and played with some NuGet settings. There’s not much about this error out on the net unless you remove compiling Unreal Engine 5 as a search parameter. I have a hunch it’s about how vscode is installed… I have the binary from the AUR.

```auto
/home/laflaizn/UnrealEngine/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/home/laflaizn/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/home/laflaizn/UnrealEngine/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The SSL connection could not be established, see inner exception. [/home/laflaizn/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]
/home/laflaizn/UnrealEngine/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : The remote certificate is invalid according to the validation procedure. [/home/laflaizn/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

```

---

<div class="post-metadata">

**Author:** ![Klopuk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Klopuk](https://forums.unrealengine.com/u/Klopuk)\
**Post date:** [May 29, 2022, 10:14pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/9 "2022-05-29T22:14:48Z")

</div>

[dotnet core 3.0 (master nightly build) restore fails on Ubuntu for invalid certificate · Issue #8169 · NuGet/Home · GitHub](https://github.com/NuGet/Home/issues/8169) ← this is the fix (for me)

---

<div class="post-metadata">

**Author:** ![TheJarmanitor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheJarmanitor](https://forums.unrealengine.com/u/TheJarmanitor)\
**Post date:** [May 29, 2022, 11:11pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/11 "2022-05-29T23:11:27Z")

</div>

So i deleted my last reply as i make a mistake while doing the symlinks.

The github response made it work for me. Thank you very much!

---

<div class="post-metadata">

**Author:** ![laflaizn1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laflaizn1](https://forums.unrealengine.com/u/laflaizn1)\
**Post date:** [May 30, 2022, 12:31am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/12 "2022-05-30T00:31:45Z")

</div>

Any chance you can help me out with the symlink command? I’m fairly certain I’ve got it right but it still doesn’t work, seems like you were in the same boat?

---

<div class="post-metadata">

**Author:** ![TheJarmanitor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheJarmanitor](https://forums.unrealengine.com/u/TheJarmanitor)\
**Post date:** [May 30, 2022, 12:55am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/13 "2022-05-30T00:55:29Z")

</div>

Sure.  
first i had to install libssl. you’ll probably want to rebuild the dot-sdk libraries after this.

```auto
sudo pacman -S libssl

```

I also had to create the required directories since they were nonexistent in my system.

```auto
sudo mkdir /usr/local/ssl
sudo ln -s /etc/ssl/certs /usr/local/ssl

```

Also just in case i did the same with the lib directory just in case. This might be unnecessary, but doesn’t hurt to try.

```auto
sudo mkdir /usr/lib/ssl
sudo ln -s /etc/ssl/certs /usr/lib/ssl

```

Hope this can help.

---

<div class="post-metadata">

**Author:** ![laflaizn1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laflaizn1](https://forums.unrealengine.com/u/laflaizn1)\
**Post date:** [May 30, 2022, 12:59am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/14 "2022-05-30T00:59:27Z")

</div>

It was actually the second one that did it for me! Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_51bf35b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_51bf35b21](https://forums.unrealengine.com/u/anonymous_user_51bf35b21)\
**Post date:** [June 5, 2022, 4:42pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/15 "2022-06-05T16:42:25Z")

</div>

Nothing helped me on archlinux except for:

`ln -s /etc/ssl /usr/lib/ssl`

---

<div class="post-metadata">

**Author:** ![Hellwasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hellwasta](https://forums.unrealengine.com/u/Hellwasta)\
**Post date:** [June 7, 2022, 9:05am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/16 "2022-06-07T09:05:53Z")

</div>

After installing libicu50 i was able to get pass globalization  
I wasn’t able to install libssl but openssl worked for me then i “dotnet restore” no clue if that helped in anyway then i mkdir and ln.  
Now it is compiling thank you all.

---

<div class="post-metadata">

**Author:** ![Slick3DArt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slick3dart/32/1126742_2.png) [@Slick3DArt](https://forums.unrealengine.com/u/Slick3DArt)\
**Post date:** [June 8, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/17 "2022-06-08T13:53:31Z")

</div>

I did a tutorial showing how to solve this problem on Fedora 36. I believe that would help in others distros too. Here is the link: [https://www.slick3d.art/post/compiling-unreal-engine-5-on-fedora-36](https://www.slick3d.art/post/compiling-unreal-engine-5-on-fedora-36)

---

<div class="post-metadata">

**Author:** ![n4zim1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n4zim1](https://forums.unrealengine.com/u/n4zim1)\
**Post date:** [June 14, 2022, 4:54am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/18 "2022-06-14T04:54:50Z")

</div>

Creating the SSL directories worked for me, thank you @TheJarmanitor !

However, I noticed that `libssl` was not available in my pacman packages, but it worked anyway.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3aedfae81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3aedfae81](https://forums.unrealengine.com/u/anonymous_user_3aedfae81)\
**Post date:** [June 22, 2022, 3:49am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/19 "2022-06-22T03:49:14Z")

</div>

I was having the same problem on Fedora 35, but your solution worked perfectly. Thank you so much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d47742781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d47742781](https://forums.unrealengine.com/u/anonymous_user_d47742781)\
**Post date:** [July 29, 2022, 1:21am UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/20 "2022-07-29T01:21:05Z")

</div>

worked for me, thanks

---

<div class="post-metadata">

**Author:** ![ashum048](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ashum048](https://forums.unrealengine.com/u/ashum048)\
**Post date:** [July 29, 2022, 10:25pm UTC](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637/21 "2022-07-29T22:25:14Z")

</div>

that’s what helped me on UE5 and Rocky Linux

[Next page](https://forums.unrealengine.com/t/error-compiling-unreal-engine-on-arch-linux/549637.md?page=2)
