# Build from source - refusing root privileges

**URL:** <https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236>\
**Category:** Platform & Builds\
**Tags:** error, source, root, Linux, build, unreal-engine, question\
**Created:** [August 2, 2019, 12:18pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236 "2019-08-02T12:18:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 2, 2019, 12:18pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/1 "2019-08-02T12:18:51Z")

</div>

Hi all,  
I’m trying to build UE4 from source on my Debian (stretch) system.

I’ve followed all of the instructions from the official guide, but compiling hits an error relating to my giving it superuser privileges - see line 49 in this log: [UE4 Build Log: With SU - Pastebin.com](https://pastebin.com/rH34Fv06)

I’ve tried following the guide again from the start (including re-downloading the source), no change there.  
I haven’t made any changes to the source.

Thanks in advance, any help is very much appreciated.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [August 2, 2019, 1:20pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/2 "2019-08-02T13:20:36Z")

</div>

Please do not build it as root. Parts of Unreal engine need to run during the build and they will not run with superuser privileges.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 2, 2019, 2:27pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/3 "2019-08-02T14:27:57Z")

</div>

Thanks for your reply. Without root privileges, the build oddly throws syntax errors in the mathcalls header: [UE4 Build Log - Pastebin.com](https://pastebin.com/4iMM7G4w) Perhaps root is needed to run the bundled version of clang? The official UE4-on-linux guide worked fine on my Ubuntu system, so I’m assuming there’s something wrong with my Debian setup…?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 6, 2019, 6:04pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/4 "2019-08-06T18:04:25Z")

</div>

Don’t suppose anyone has seen this kind of error before?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4147bda1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4147bda1](https://forums.unrealengine.com/u/anonymous_user_4147bda1)\
**Post date:** [June 22, 2020, 8:26pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/5 "2020-06-22T20:26:00Z")

</div>

[https://forums.unrealengine.com/development-discussion/engine-source-github/91044-error-compiling-ue4-on-fedora-24](https://forums.unrealengine.com/development-discussion/engine-source-github/91044-error-compiling-ue4-on-fedora-24)  
this will help you out it helped me 🙂

---

<div class="post-metadata">

**Author:** ![AbelLogic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AbelLogic](https://forums.unrealengine.com/u/AbelLogic)\
**Post date:** [April 14, 2024, 2:57pm UTC](https://forums.unrealengine.com/t/build-from-source-refusing-root-privileges/453236/6 "2024-04-14T14:57:05Z")

</div>

I’m trying to build from inside a singularity container, on a SLURM cluster. Singularity automatically uses the --fakeroot option. Is there anyway we can force UE4 to build under the root user?
