title: pycuda -- error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
body: <p>i installed sabayon linux and i tried to install pycuda but i am receiving the following error when i try</p>
  
  <blockquote>
    <p>su -c "make install"</p>
    
    <p>In file included from src/cpp/cuda.cpp:1:0: src/cpp/cuda.hpp:12:18:
    fatal error: cuda.h: No such file or directory compilation terminated.
    error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1</p>
  </blockquote>
  
  <p>I must mention that  i can  compile with cuda.</p>
  
  <p>The same happens and when i try with</p>
  
  <blockquote>
    <p>sudo -E sh -c "make install"</p>
  </blockquote>
  
  <p>My .bashrc is :</p>
  
  <pre><code># Put your fun stuff here.
  export PATH=~/bin:$PATH 
  export PATH=$PATH:$HOME/Matlab_2010b/bin 
  export PATH=/opt/cuda/bin:$PATH 
  export LD_LIBRARY_PATH=/opt/cuda/lib64:$LD_LIBRARY_PATH 
  export CUDA_ROOT=/opt/cuda/bin   
  </code></pre>
  
  <p>(When i do echo $PATH as user it shows me : /opt/cuda/bin but when i try it as root it doesn't show anything and i had to do export PATH...again in order to show.)</p>