[R-SIG-Mac] Tcl/Tk problem
Penelope Bryant
p.bryant2 at pgrad.unimelb.edu.au
Thu May 5 08:29:41 CEST 2005
I'm having a problem loading Tcl/Tk in R. Mac OS X, R 2.1.0, Tcl/Tk
8.4.9. Tcl/Tk was installed from source in /usr/local/. When building
Tk from source, the X11 static library could not be found, so
-L/usr/X11R6/lib/" was added to the Makefile which solved the problem.
Running X11, then R, typing Sys.putenv("DISPLAY"=":0") as suggested in
the R for Mac FAQ and then trying to load Tcl/Tk produced the following
error message:
> Sys.putenv("DISPLAY"=":0")
> library(tcltk)
Loading Tcl/Tk interface ... Error in fun(...) : this isn't a Tk
applicationcouldn't connect to display ":0"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: .onLoad failed in 'loadNamespace' for 'tcltk'
Error: package/namespace load failed for 'tcltk'
Does anyone have any suggestions about where I might be going wrong?
Penelope
More information about the R-SIG-Mac
mailing list