Installing Linaro on Ubuntu 18.04

I am following this guide to install Linaro on my Ubuntu 18.04 machine:

Unlike the guide, I want to have the latest Linaro version. Thus, these are the commands I use:

sudo apt-get install aptitude

sudo apt-get install gcc-multilib

wget -c --no-check-certificate

tar xf gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz

export CC=pwd/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-

{CC}gcc --version

It fails at the last line, complaining:

{CC}gcc: command not found

Can somebody enlighten me? What have I done wrong? This process previously failed when I used Linaro 6.4.1 as in the guide. Thank you so much in advance.

Did you stay in the same terminal window? The way i've written it,
export only stores CC in the current running instance..

So run:

echo ${CC}

If it comes back blank, you didn't export it..


I left out the $ operator. Anyways, after executing the echo, ${CC}gcc --version works perfectly. What magic does echo bring?