This guide assumes a 64 bit architecture First install gcc 4.6.3 using this guide

Compiling GCC 4.6.3

Ensure that your kernel and selinux policy are up to date

yum update

Install RPM fusion

yum localinstall --nogpgcheck

Install the nvidia graphics driver

yum install akmod-nvidia xorg-x11-drv-nvidia-libs

We need to get the cuda sdk, in this case get the version for fedora16

CUDA SDK download

install prerequisites for cuda sdk

yum install glut-devel

run chmod to make it executable

chmod +x

Install the cuda sdk, say no when asked to install driver


Export the correct paths, add them to your .bashrc file to be permanent

export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib:$LD_LIBRARY_PATH