Two ways, either install a pre-built binary or install with a shell script.
This way consists of a quite lengthy process that involves building the compiler from source.
This is applicable to all the installation methods.