Error while installing UE4 on Ubuntu 16.04

If you don’t see SUCCESS message in the end, then building did not finish properly.
In that case, take a look into /media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.
==> BuildHLSLCC

i Got this error in log file

/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 1: building: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 2: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 3: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 4: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 5: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 6: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 7: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 8: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 9: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 10: ++: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 11: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 12: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 13: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 14: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 15: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 16: ++: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 17: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 18: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 19: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 20: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 21: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 23: +: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 24: clang++-3.5: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 25: make:: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 26: Makefile:43:: command not found
/media///UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log: line 27: make:: command not found

My setup.sh

#!/bin/bash
# Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.

set -e

cd "`dirname "$0"`"

if [ ! -f Engine/Binaries/DotNET/GitDependencies.exe ]; then
	echo "GitSetup ERROR: This script does not appear to be located \
       in the root UE4 directory and must be run from there."
	exit 1
fi 

if [ "$(uname)" = "Darwin" ]; then
	# Setup the git hooks
	if [ -d .git/hooks ]; then
		echo "Registering git hooks... (this will override existing ones!)"
		rm -f .git/hooks/post-checkout
		rm -f .git/hooks/post-merge
		ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-checkout
		ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-merge
	fi

	# Get the dependencies for the first time
	Engine/Build/BatchFiles/Mac/GitDependencies.sh --prompt $@
else
	# Setup the git hooks
	if [ -d .git/hooks ]; then
		echo "Registering git hooks... (this will override existing ones!)"
		echo \#!/bin/sh >.git/hooks/post-checkout
		echo Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-checkout
		chmod +x .git/hooks/post-checkout

		echo \#!/bin/sh >.git/hooks/post-merge
		echo Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-merge
		chmod +x .git/hooks/post-merge
	fi

	pushd Engine/Build/BatchFiles/Linux > /dev/null
	./Setup.sh "$@"
	popd > /dev/null
fi

Reinstalling clang Solved the problem