CUDA Toolkit installation error

I’m trying to install CUDA toolkit 6.5 using the .Run package, I’ve prepared the environment for this so I’ve installed Linux headers and Nvidia kernel dkms package. Now when it comes to the toolkit package my installation stops giving me the error: “unsupported compiler: 5.4.1. Use --override to override this check.”
Anyone knows how to solve this?
P.S. I’m a newbie so I don’t know how to check my actual compiler and, in case, how to change it for using the one needed by this installation.