Cannot find -lstdc++

So ive been trying to install UE 4.15 on ubuntu 16.04, i would get this error:

Build.sh" UE4Editor Linux Development
Building UE4Editor…
Using clang version ‘3.8.0’ (string), 3 (major), 8 (minor), 0 (patch)
Performing 246 actions (4 in parallel)
[1/246] Link libUE4Editor-UnrealEd.so
[2/246] Link libUE4Editor-Sequencer.so
[3/246] Link libUE4Editor-MovieSceneTools.so
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /home/ibrahim-m/Downloads/UnrealEngine-4.15/Engine/Binaries/Linux/libUE4Editor-UnrealEd.so
Total build time: 2.71 seconds (Local executor: 0.00 seconds)
Makefile:188: recipe for target ‘UE4Editor’ failed
make: *** [UE4Editor] Error 5

I really don’t know how to fix it but if it help, ive been following the guide for installing UE4.

Hey WARGAMES-

Is this the guide you’ve been using to build the editor: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums ? If so, where in the process are you running into this issue? Can you lay our the steps you take that lead to this error?

Hey
Firstly yes that is the exact same guide that i was using. Now to remake the error, which is what im getting every time. First i downloaded and extracted the UE Release from Github, after going to the appropriate file directory via the “cd command”, ive thae ran the ./Setup.sh which ran perfectly. After ive ran the ./GenerateProjectFiles.sh which also worked perfectly. Running the make command, everything ran perfectly as in whatever file that was needed to compile or link, it did it successfully. The problem arose when it was 835/1078, where this message showed up. I ran make again, and the same message came.

Can you try running make SharderCompileWorker make UnrealLightmass make UnreakPak make CrashReportClient make UE4Game and make UE4Editor as separate commands? This will help narrow which specific makefile is running into problems. If you’re still getting this error, please make sure you are using the correct version of Clang (Clang 3.8 for Ubuntu 16.04).

OK, so ive done what you have told me.
Make ShardercCompilerWorker (WORKED)
make UnrealLightmass (WORKED)
make UnreakPak (WORKED)
Make CrashReportClient (WORKED)
make UE4Game (WORKED)

Now the problem lies in make UE4Editor here is the error again:
[834/1078] Link libUE4Editor-AITestSuite.so
[835/1078] Link libUE4Editor-UMGEditor.so
ERROR: UBT ERROR: Failed to produce item: /home/ibrahim-m/Desktop/UnrealEngine-4.15/Engine/Binaries/Linux/libUE4Editor-UnrealEd.so
Total build time: 4233.04 seconds (Local executor: 0.00 seconds)
Makefile:188: recipe for target ‘UE4Editor’ failed
make: *** [UE4Editor] Error 5

So yah, also ive checked, i have clang installed as well

Well, i fixed my problem. but this was unnecessary to do.

  1. Ive backed everything up and reinstall ubuntu on my machine.
  2. ive then went back in to terminal and did sudo apt-get update, followed by sudo apt-get upgrade
  3. ive then re downloaded the file and extracted it
  4. ive just followed the install guide for linux. A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Note: When doing ./Setup.sh ive saw that the command was installing new stuff like clang and what not followed by downloading more stuff. I did not see this earlier, but maybe it could help.

I’m a little late to the party, but had same issue. I found the solution at the following link helpful and worked for me: Reddit - Dive into anything