I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?
Thanks
Craig
$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...
That's strange. It's there for ages and I don't see any changes on
TCL/Tk side about supported color names.
Can You provide information about Your TCL and Tk versions?
Maris.
2009/7/30, Craig Leat <craig.leat@gmail.com>:
Hi
I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?
Thanks
Craig
$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...
That's strange. It's there for ages and I don't see any changes on
TCL/Tk side about supported color names.
Can You provide information about Your TCL and Tk versions?
$ dpkg -l | grep tk8
ii tk8.5 8.5.6-3
Tk toolkit for Tcl and X11, v8.5 - run-time
ii tk8.5-dev 8.5.6-3
Tk toolkit for Tcl and X11, v8.5 - developme
$ dpkg -l | grep tcl
ii tcl8.5 8.5.6-3
Tcl (the Tool Command Language) v8.5 - run-t
ii tcl8.5-dev 8.5.6-3
Tcl (the Tool Command Language) v8.5 - devel
ii tcllib 1.10-dfsg-3
the Standard Tcl Library
On Thu, Jul 30, 2009 at 5:27 PM, Craig Leat<craig.leat@gmail.com> wrote:
Hi
I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?
Thanks
Craig
$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...
check your /etc/X11/xorg.conf on the differents machines.
-> RgbPath "/usr/share/X11/rgb"
It was different between the two machines...
On the machine that worked the RgbPath was not specified.
It was specified on the machine that did not work...
I commented it out and rebooted and it started working.
Thanks,
Jerry
Maris.
2009/7/31, Markus Neteler <neteler@osgeo.org>:
On Thu, Jul 30, 2009 at 5:27 PM, Craig Leat<craig.leat@gmail.com> wrote:
Hi
I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?
Thanks
Craig
$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...
I copied /usr/share/pixmap/rgb.txt to /etc/X11/ and restarted X. Now
Tcl/Tk gui works, but there are still problems with nviz:
nviz -q
Error in startup script: Togl: couldn't get visual
while executing
"togl $Nv_(TOP).canvas -rgba true -double true -depth true"
(procedure "Nv_makeGUI" line 56)
invoked from within
"Nv_makeGUI $Nv_(AREA)"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/nviz2.2/scripts/nviz2.2_script"
line 1052)
Thanks for the tips, I'm making progress. Any more ideas about the
remaining nviz error?
Error in startup script: Togl: couldn't get visual
while executing
"togl $Nv_(TOP).canvas -rgba true -double true -depth true"
(procedure "Nv_makeGUI" line 56)
invoked from within
"Nv_makeGUI $Nv_(AREA)"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/nviz2.2/scripts/nviz2.2_script"
line 1052)
Solved by removing the package libgl1-mesa-dri. You can't do direct
rendering on a remote display!
Craig
Note to self: First check if glxgears works before blaming GRASS