[R] R1.5.1,tcltk,IRIX

Len F. Zaifman leonardz at bioinfo.sickkids.on.ca
Fri Sep 27 21:00:11 CEST 2002


the built version of R (built using shared libraries) doesn't appear to
find tcl/tk:
Please help.

Details:

SGI configuration:
7.3.1.3m compilers from SGI
uname -aR = IRIX64 mendel 6.5 6.5.16f 04101930 IP35
	
We built R on an SGI system using the following configure script:

# explicitly choose vendor compilers for R rather than GNU
# optimise output to support highest level of performance for the
processors on OCGC
export CC="/usr/bin/cc -n32 -mips4 -r12000"
export CXX="/usr/bin/CC -n32 -mips4 -r12000"
export F77="/usr/bin/f77 -n32 -mips4 -r12000"
# these flags appear to be necessary to build with tcl/tk
export TCLTK_LIBS='-L/usr/local/lib32'
export TCLTK_CPPFLAGS='-I/usr/local/include/tcl -I/usr/local/include/tk'
# put /usr/local/bin first to get newer perl and also add path to javac
export PATH=/usr/local/bin:/usr/java/bin32:/usr/java/bin:$PATH
(date ; ./configure --prefix=/tools/Rstat1.5.1 --enable-R-shlib
--with-readline  --with-tcltk --with-x
--with-tcl-config=/usr/local/lib32/tclConfig.sh
--with-tk-config=/usr/local/lib32/tkConfig.sh ; date ) 2>&1 | tee
Configure.log

configure returned:

	
  X11 support:               yes
  Gnome support:             no
  Tcl/Tk support:            yes
  Readline support:          yes

  R profiling support:       yes
  R as a shared library:     yes


That and a clean compile and install meant it looked like tcl was built
in properly.

However, when I try to load it in the following happens:

	
> library(tcltk)
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
        unable to load shared library
"/tools/Rstat1.5.1/lib/R/library/tcltk/libs/tcltk.so":
  1243708:/tools/Rstat1.5.1/lib/R/bin/R.bin: rld: Fatal Error:
unresolvable symbol in
/tools/Rstat1.5.1/lib/R/library/tcltk/libs/tcltk.so: Tk_SafeInit
Error in library(tcltk) : .First.lib failed

when i run ldd on R.bin


-- ldd /tools/Rstat1.5.1/lib/R/bin/R.bin
        libblas.so  =>   /usr/lib32/libblas.so  
        libreadline.so.4  =>     /usr/freeware/lib32/libreadline.so.4   
        libdl.so  =>     /usr/lib32/libdl.so    
        libncurses.so.6  =>      /usr/freeware/lib32/libncurses.so.6    
        libm.so  =>      /usr/lib32/libm.so     
        libftn.so  =>    /usr/lib32/libftn.so   
        libbz2.so.1  =>  /usr/freeware/lib32/libbz2.so.1        
        libc.so.1  =>    /usr/lib32/libc.so.1   
        libcurses.so  =>         /usr/lib32/libcurses.so

So I can see that it didn't get loaded in R.bin, and similarly for:

ldd  /tools/Rstat1.5.1/library/tcltk/libs/tcltk.so
        libm.so  =>      /usr/lib32/libm.so     
        libR.so  =>      /tools/Rstat1.5.1/lib/R/bin/libR.so    
        libc.so.1  =>    /usr/lib32/libc.so.1   
        libblas.so  =>   /usr/lib32/libblas.so  
        libreadline.so.4  =>     /usr/freeware/lib32/libreadline.so.4   
        libdl.so  =>     /usr/lib32/libdl.so    
        libncurses.so.6  =>      /usr/freeware/lib32/libncurses.so.6    
        libftn.so  =>    /usr/lib32/libftn.so   
        libbz2.so.1  =>  /usr/freeware/lib32/libbz2.so.1        
        libcurses.so  =>         /usr/lib32/libcurses.so 
AND
ldd /tools/Rstat1.5.1/lib/R/bin/libR.so
        libblas.so  =>   /usr/lib32/libblas.so  
        libreadline.so.4  =>     /usr/freeware/lib32/libreadline.so.4   
        libdl.so  =>     /usr/lib32/libdl.so    
        libncurses.so.6  =>      /usr/freeware/lib32/libncurses.so.6    
        libm.so  =>      /usr/lib32/libm.so     
        libftn.so  =>    /usr/lib32/libftn.so   
        libbz2.so.1  =>  /usr/freeware/lib32/libbz2.so.1        
        libc.so.1  =>    /usr/lib32/libc.so.1   
        libcurses.so  =>         /usr/lib32/libcurses.so     

So the tcl & tk libraries do't seem to be loaded anywhere.

Any help would be appreciated.


Len Zaifman
Manager, Supercomputing Systems
Centre for Computational Biology
Hospital for Sick Children
Toronto,Ont.
(416)813-5513
leonardz at bioinfo.sickkids.on.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leonardz.vcf
Type: text/x-vcard
Size: 332 bytes
Desc: Card for Len F. Zaifman
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020927/7cb1e92c/leonardz.vcf


More information about the R-help mailing list