help for NVIDIA CUDA SDK, make error

hi, all
I use CUDA for the first time, when I install it, I do like this:
0. a. Install the NVIDIA Linux display driver by executing the file
NVIDIA-Linux-*-pkg1.run

(Note this is pkg2 for 64-bit linux.)
For information on installing NVIDIA Linux display drivers, please refer to
the NVIDIA Accelerated Linux Driver Set README and Installation Guide:
[url=“http://us.download.nvidia.com/XFree86/Linu...ADME/index.html”]http://us.download.nvidia.com/XFree86/Linu...ADME/index.html[/url]

  1. Install version 2.1 of the NVIDIA CUDA Toolkit by executing the file
    NVIDIA_CUDA_Toolkit_2.1-*.run corresponding to your Linux distribution

Add the CUDA binaries and lib path to your PATH and LD_LIBRARY_PATH
environment variables.

  1. Install version 2.1 of the NVIDIA CUDA SDK by executing the file
    NVIDIA_CUDA_SDK_2.1-*.run

The installer will prompt you to enter an installation path for the SDK or
accept the default. We will refer to the path you choose as
SDK_INSTALL_PATH.

  1. Build the SDK project examples.

cd <SDK_INSTALL_PATH>
make

  1. Run the examples:

cd <SDK_INSTALL_PATH>/bin/linux32/release
matrixmul

BUT then I do the third step… failure:
./…/common/inc/GL/glut.h:60:20: error: GL/glu.h: No such file or directory
make[1]: *** [obj/release/paramgl.cpp.o] Error 1
make[1]: Leaving directory `/home/enpeda/NVIDIA_CUDA_SDK/common’
make: *** [lib/libparamgl.so] Error 2

Who can help me??? thank you!!!

my display card is Geforce GTX 280, and I had installed its driver. need I install the OPENGL?

The error is quite explicit. You’re missing GL/glu.h. This has been discussed in several other threads on this forum. You need to install libGLU, which ships with the OS, not CUDA.

Thank you. the error disappear. but another appearance…

make[1]: Entering directory `/home/enpeda/NVIDIA_CUDA_SDK/projects/fastWalshTransform'

/usr/include/bits/stdio2.h(35): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(66): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(99): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(105): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(159): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(167): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(174): error: identifier "__builtin_va_arg_pack" is undefined

/usr/include/bits/stdio2.h(182): error: identifier "__builtin_va_arg_pack" is undefined

8 errors detected in the compilation of "/tmp/tmpxft_00002ca2_00000000-4_fastWalshTransform.cpp1.ii".

make[1]: *** [obj/release/fastWalshTransform.cu.o] Error 255

make[1]: Leaving directory `/home/enpeda/NVIDIA_CUDA_SDK/projects/fastWalshTransform'

make: *** [projects/fastWalshTransform/Makefile.ph_build] Error 2

You have to replace gcc 4.3 with gcc 4.2.

Or use a supported Linux distribution.