Make errors Installation successfull but error on make

Hi i’m new here.
First of all i have to tell you about the system i’m trying to
develop cuda.
I have an intel i7 processor 64bit
The operating system i’m running on is Ubuntu linux 10.04 64bit
I also have a Ge Force GT240 on my pc which supports cuda.
Well these days i’ve read many posts about how to properly install
the cuda sdk.
so i have successfully (as i suppose) installed

The next step is trying to do make
co i go on the folder NVIDIA_GPU_Computing_SDK/C
and i do make

and that’s the time i’m getting these errors
"make -C src/bicubicTexture/
make[1]: Entering directory ~/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture' /usr/bin/ld: cannot find -lGL collect2: ld returned 1 exit status make[1]: *** [../../bin/linux/release/bicubicTexture] Error 1 make[1]: Leaving directory ~/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture’
make: *** [src/bicubicTexture/Makefile.ph_build] Error 2

I have to say that nvcc is installed properly and i have
also configured properly the PATH an LD_LIBRARY_PATH
this is the output
echo $PATH

Is there anyone who knows about this error ?

i could also appreciate if someone posts all the installation steps from the beginning

Did you install the NVIDIA driver too? The OpenGL libs come in the driver package.

yes i did it was the first thing i did .

I’ve read on another post that the problem has to do with the gcc compiler version

in my system the compiler installed is >version 4

well i suppose you were right
i’haven’t installed properly the drivers for linux.
as i sais before my nvidia chipset is gforce 240gt
i’ve installed properly the drivers at the moment
but after the reboot
i’m getting the error failed to load the NVIDIA KERNEL module
and when i log in
and go System->Administrator ->NVIDIA LINUX X server setting
it displays the error you dont appear to be using NVIDIA X server driver
please edit your X configuration file
i don’t know what to do