[GRASSLIST:6127] nviz startup script error

Hi;
I've recently installed grass5.0.2. And I've tried to execute nviz with the
following result:
-----------------------
Loading Data
Update elev null mask
Loading Data
translating colors
Adding panels from /usr/local/grass5/etc/nviz2.2/scripts
Nv_(panels)
toplevel made
Error in startup script: Togl: X server has no OpenGL GLX extension
    while executing
"togl $BASE.canvas -rgba true -double true -depth true "
    (procedure "Nv_makeGUI" line 24)
    invoked from within
"Nv_makeGUI .top"
    (file "/usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script" line 660)
child process exited abnormally
    while executing
"exec /usr/local/grass5/etc/nviz2.2/NVWISH2.2 -f
/usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout"
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
$env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ

&@stdout"

    invoked from within
"if {$argv == ""} {
#no arguments
eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
$env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdo..."
    (file "/usr/local/grass5/bin/nviz" line 16)
----------------------------------------------------
I couldn't install readline (could this have any relationship?)
What could I do?

Thanks and regards
Javier

javier garcia wrote:

I've recently installed grass5.0.2. And I've tried to execute nviz with the
following result:

Error in startup script: Togl: X server has no OpenGL GLX extension

Your OpenGL library isn't compatible with your X server.

Basically, you have a "real" OpenGL library, which expects the X
server to do the actual OpenGL rendering (unlike Mesa, which does the
rendering itself).

If you're using XFree86 4.x, you need to have:

    Load "glx"

in the "Module" section of the XF86Config file.

You can use the "glxinfo" utility to check whether your X server is
set up correctly.

Alternatively, you could use Mesa, which does the rendering itself,
and sends the rendered image to the X server (consequently, it doesn't
need GLX support in the X server).

I couldn't install readline (could this have any relationship?)

No. The readline library is optional, and is only used by r.mapcalc.

--
Glynn Clements <glynn.clements@virgin.net>