Skip to content
Prev 10787 / 398502 Next

R installation with tcltk

Hello.

Thanks to the help from Prof. Ripley, I can now run R under my Solaris 2.6
machine!  I should have include the correct library path in
LD_LIBRARY_PATH variable.

However, I still get the following problem.
I configured the R system with --with-tcltk option.
In fact, I ran the following:

/configure --prefix=/opt/local --with-f77 --with-tcltk --with-tcl-config=/opt/local/lib/tclConfig.sh --with-tk-config=/opt/local/lib/tkConfig.sh

My local libraries are all in /opt/local/lib area.
Everything was compiled normally without error and I got R and R.bin execs.
Now, I have the following error even I put the correct library path.
demo(tkttest)
        ---- ~~~~~~~

Type  <Return>   to start :
Loading required package: tcltk 
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
        unable to load shared library "/opt/pkg/R-1.2.2/library/tcltk/libs/tcltk.so":
  ld.so.1: /opt/pkg/R-1.2.2/bin/R.bin: fatal: relocation error: file /opt/pkg/R-1.2.2/library/tcltk/libs/tcltk.so: symbol Tcl_Alloc: referenced symbol not found
Error in .C("delTcl", PACKAGE = "tcltk") : 
        C/Fortran function name not in load table
Error in eval.with.vis(expr, envir, enclos) : 
        tcltk support is absent


I would appreciate it if you could help me correct this behavior.
Best regards,
Naoki Saito