fail to run "Nbody"--Required OpenGL extensions missing.Segmentation fault

my server is Linux CentOS.
I use Xmanager to link my windows to the linux server.
and now i can enter xwindow.
when i try to run the demo “nbody”,it will shown me the following error message:
Run “nbody -benchmark [-n=]” to measure perfomance.
-fullscreen (run n-body simulation in fullscreen mode)
-fp64 (use double precision floating point values for simulation)

Windowed mode
Simulation data stored in video memory
Single precision floating point simulation
freeglut (./nbody): Unable to create direct context rendering for window ‘CUDA n-body system’
This may hurt performance.
Required OpenGL extensions missing.Segmentation fault

what’s wrong with it and what shall I do?