diff --git a/utilite.sh b/utilite.sh
index a648382..4959820 100755
--- a/utilite.sh
+++ b/utilite.sh
@@ -10,6 +10,13 @@ fi
 
 basedir=`pwd`/utilite-$1
 
+# Check the cross compiler exist before downloading all packages
+export CROSS_COMPILE=arm-linux-gnueabihf-
+if [ $(compgen -c $CROSS_COMPILE | wc -l) -eq 0 ] ; then
+	echo "Missing cross compiler. Set it up in PATH."
+	exit 1
+fi
+
 # Package installations for various sections. 
 # This will build a minimal XFCE Kali system with the top 10 tools.
 # This is the section to edit if you would like to add more packages.
@@ -183,7 +190,6 @@ patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
 cp ${basedir}/../kernel-configs/utilite.config .config
 touch .scmversion
 export ARCH=arm
-export CROSS_COMPILE=arm-linux-gnueabihf-
 make -j $(grep -c processor /proc/cpuinfo) uImage modules
 make modules_install INSTALL_MOD_PATH=${basedir}/root
 cp arch/arm/boot/uImage ${basedir}/bootp/uImage-cm-fx6
