Help with cuda 3.1 on ubuntu 10.04 Lucid running cuda sdk 3.1 on ubuntu 10.04 Lucid

I’m new in linux. I’ve installed ubuntu 10.04 and i want to use the gpu of my pc. I’ve installed correctly the dricer 256 and the cuda 3.1 toolkit and the SDK. The problem is that i can’t complie the binaries of sdk because of an error, but i really don’t know what cuold be the problem. Here is the code of the error:

/usr/bin/ld: cannot find the -lGL
collect2: ld return 1 exit status
make[1]: *** […/…/bin/linux/release/marchingCubes] Errore 1

Thanks for help, i really don’t know who ask for this problem.

[url=“The Official NVIDIA Forums | NVIDIA”]http://forums.nvidia.com/index.php?showtopic=171590[/url]

Thanks a lot for helping me. I have already seen that forum and I’ve made all instructions but nothing has changed. I’ve used the command

[codebox]sudo rm /usr/lib/libGL.so; sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so[/codebox]

But I still have this error

[codebox]/usr/bin/ld: cannot find -lGL

collect2: ld returned 1 exit status[/codebox]

It seems like libGL.so doesn’t work properly…I’m not a very expert on linux…Sorry if I can’t tell you something more. Thanks a lot!!! :)

had you try this:
sudo apt-get install libxext-dev libxi-dev x11proto-xext-dev libice-dev libsm-dev libxt-dev libxmu-headers libxmu-dev freeglut3-dev libglut3-dev

then uninstall and reinstall the graphics driver.

cho, I must say that you are great !!! I have made what you have said: installed the pakages, uninstall the 256.35 driver and installed the 256.40, installed new cuda toolkit and cuda sdk and now all the sdk example are running fine !!! I want to thank you to have spent time in answer me! You are very beautifull person !!! I want ask you if when I will write some code in cuda i can ask you for help (i hope not to disturb You). :)