Error: Failed to generate code for SlateViewer - error code: CrashOrAssert (3)

Hello such, I experienced an error trying to install Unreal Engine, I just download the code from github today, and Realize the installation raisins which were these:
I installed packages needed:

sudo apt-get install build-essential mono-gmcs mono-xbuild mono-dmcs libmono-corlib4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-web-extensions4.0-cil libmono-system-management4.0-cil libmono-system-xml-linq4.0-cil cmake dos2unix clang-3.5 xdg-user-dirs git

Create symbolic links if the clang not create them automatically:

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang
sudo ln -s /usr/bin/clang+±3.5 /usr/bin/clang++

I download the code from github Unreal Engine 4, the statement I made:

git clone https://github.com/EpicGames/UnrealEngine.git.

wait until it is completely discharged successfully, then do the following::

cd UnrealEngine
sudo ./Setup.sh
sudo ./GenerateProjectFiles.sh

which they are executed correctly, but when you run the following statement:
sudo make SlateViewer

I showed all this message:
Building SlateViewer…
Using clang version ‘3.5.0’ (string), 3 (major), 5 (minor), 0 (patch)
Creating makefile for SlateViewer (no existing makefile)
Performing full C++ include scan (no include cache file)
Building UnrealHeaderTool…
Using clang version ‘3.5.0’ (string), 3 (major), 5 (minor), 0 (patch)
Target is up to date.
Parsing headers for SlateViewer
Running UnrealHeaderTool SlateViewer “/home/armandobmth/UnrealEngine/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/SlateViewer/Development/UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error”
Refusing to run with the root privileges.
Error: Failed to generate code for SlateViewer - error code: CrashOrAssert (3)
UnrealHeaderTool failed for target ‘SlateViewer’ (platform: Linux, module info: /home/armandobmth/UnrealEngine/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/SlateViewer/Development/UnrealHeaderTool.manifest).
make: *** [SlateViewer] Error 3

I hope you can help me to correct the mistake, thank you very much.

Hey ArmandoBMTH-

It appears that you’re attempting to use the engine with root privileges which is not possible. Rather than using Root you should be able to install the editor under a user profile with sufficient privileges. You can find more information about this here: Code cannot be executed with root privileges under Linux. Why? - Platform & Builds - Epic Developer Community Forums

Cheers

ok, thanks for your help, I think that says I can modify the code, which does not believe perform successfully, but it tells me also to change the source directory to another route and from there build, which I hope I you can say if this is correct, the truth is that I am newbie in linux, I hope you answer me, thanks.

It is possible to edit the source code to allow the editor to run under Root however this is not recommended. To prevent possible damage to your system you would want to install the engine under another user profile on the machine.