Installing Cuda 4.0 RC on Ubuntu 10.10 64-bit

by Carson Reynolds

Here are some rough notes describing my steps to get Cuda 4.0 installed and the SDK samples built on Ubuntu 10.10 (Maverick Meerkat) 64-bit. At present you need an Nvidia developer account and once you’ve signed up for one you can download the Cuda 4.0 RC.

From there you want to get:

# turn off X
sudo stop gdm

# uninstall any previously installed Nvidia drivers
sudo apt-get --purge remove nvidia-*

# make all the installers executable
chmod +x ~/Downloads/*.run

# run the driver installer
sudo ~/Downloads/

# reboot
sudo reboot

# install dependencies
sudo apt-get install libxi-dev libxmu-dev freeglut3-dev gcc g++ build-essential

# install toolkit
sudo ~/Downloads/

# install SDK
sudo ~/Downloads/

# I use /opt/NVIDIA_GPU_Computing_SDK because
# I like my home directory uncluttered

# Set path variables
export PATH=$PATH:/usr/local/cuda/bin
# 32-bit would use lib instead of lib64
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/lib
# You might want to append these to your .bashrc if you use cuda frequently

# Make the SDK examples
cd /opt/NVIDIA_GPU_Computing_SDK
sudo chown [username] .

# Try out an example