…/…/lib/librendercheckgl_x86_64.a(rendercheck_gl.cpp.o): In function CheckBackBuffer::checkStatus(char const*, int, bool)':rendercheck_gl.cpp:(.text+0xfbb): undefined reference to gluErrorString’ You are made aware of this when you change your working directory to NVIDIA_GPU_Computing_SDK in your home directory and then run: make Since there are several linking errors in this compilation several modifications must be make. Again, follow the instructions onscreen to complete the installation. Where gpucomputingsdk*.run is the full name of the SDK installer. Once the toolkit is installed, enter the following in a terminal:Ĭhmod +x gpucomputingsdk*.run./gpucomputingsdk*.run SDK must be installed as a regular user (and not as root) to prevent access issues with the SDK files. bashrc file in your home directory: export PATH=/usr/local/cuda/bin:$PATHĮxport LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATHĮxport LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH The following lines must be added into the. I recommend leaving the installation path to its default setting ( /usr/local/cuda) unless you have a specific reason for not doing so. Where cudatoolkit*.run is the full name of the toolkit installer. Next, enter the following in a terminal window (in the directory where the files are stored): chmod +x cudatoolkit*.runsudo. When it asks you if you want the 32-bit libraries and if you want it to edit nf to use these drivers by default, allow both. The installation should now proceed smoothly. In that case, run the following commands again: sudo service lightdm stopsudo. If the installer throws up an error about nouveau kernel still running, allow it to create a blacklist for nouveau, quit the installation and reboot. Run the following commands: sudo service lightdm stopchmod +x devdriver*.runįollow the onscreen instructions. Login and switch to the directory which contains the downloaded drivers, toolkit and SDK. Press Ctrl+Alt+F1 to switch to a text-based login.
At the login screen, don’t login just yet. In order to get rid of any nVidia residuals, run the following command in a terminal: sudo apt-get remove -purge nvidia* Next, blacklist the required modules (so that they don’t interfere with the driver installation) gksu gedit /etc/modprobe.d/nfĪdd the following lines to the end of the file, one per line: blacklist amd76x_edac
Make sure the requisite tools are installed using the following command : sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev i686 denotes a 32-bit system, and x86_64 denotes a 64-bit one.įor the toolkit, I chose the one titled Ubuntu 11.04, and save all three files in an easy to access location, like your Home folder.
Note one must have a nVidia GPU which is CUDA capable Ĭheck is the OS is 32 or 64 bit by running uname -m The NVIDIA CUDA Getting Started Guide (Linux) I hope you find this useful and I would like to credit my sources: So if this doesn’t work for you please post and let us know and if you know a quicker or better way please enlighten us!!!
I have found that everything that needs to be done is quite scattered and needs bringing together to make CUDA more accessible to more novice users such as my self.
This post is to give a complete picture on how to install and test CUDA 4.2 on Ubuntu 12.04 64 bit.