title: CUDA 5.0 on a Slackware64 current with gcc 4.7
body: <p>When I try to directly install the binary (700mb) cuda_5.0.35_linux_64_fedora16-1.run I only get the driver installed and setup detect that I have unsupported gcc version 4.7. I have nvcc and gcc-4.5.2 on my path.</p>
  
  <p>Thus I configured and installed gcc 4.5.2 to another directory (/opt/gcc) and pointed it via  install script :</p>
  
  <p>./cudatoolkit* --compiler-bindir /opt/gcc-4.5.2/usr/bin </p>
  
  <p>I only got the deviceQuery working but for other codes in samples I have this ;</p>
  
  <p>gcc: error trying to exec 'cc1plus': execvp: No such file or directory</p>
  
  <p>Thus the question is reduced to ;</p>
  
  <p>CUDA 5.0 prod. release supports up to gcc 4.5 and I have 4.7 in stock by default. What is the proper (de facto) way of installing the secondary gcc to a different location and pointing to it from cudatoolkit install package ? Goal is to (obviously) seamless compile the samples folder in the latest CUDA release.</p>
  
  <p>Older versions worked fine but I want to make this work.
  Any suggestions are welcomed.</p>