[R-SIG-Mac] problems with tkrplot

Jean Thioulouse jtnews1 at biomserv.univ-lyon1.fr
Sun Dec 5 12:55:59 CET 2004


Hello,

I am trying to use the tkrplot library and get the following error.

> library(tkrplot)
Loading required package: tcltk
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
          [tcl] dyld: /Library/Frameworks/R.framework/Resources/bin/exec/R malformed library:
/Library/Frameworks/R.framework/Resources/library/tkrplot/libs/tkrplot.so (not a Mach-O library file, bad filetype value)
.
Error in library(tkrplot) : .First.lib failed for 'tkrplot'


I have tried to install the latest version of the tcl/tk library (8.4.8),
and to rebuild the latest R-devel without --with-aqua, but I still
have this problem.

X11 and the tcltk package work without problem.

As explained by Jan,

At 14:04 -0700 2/05/04, Jan de Leeuw wrote:
>This is because tkrplot has to be linked with options "--dynamic -o 
>tkrplot.dylib" instead of "--bundle -o tkrplot.so". You also have to
>change the tkrplot.R file so that it recognizes the dylib extension.

I tried to link tkrplot (with R CMD SHILB) and to change tkrplot.R,
but it still says it is not a Mach-O library file :

> library(tkrplot)
Loading required package: tcltk 
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : 
        [tcl] dyld: /Library/Frameworks/R.framework/Resources/bin/exec/R malformed library: /Library/Frameworks/R.framework/Resources/library/tkrplot/libs/tkrplot.dylib (not a Mach-O library file, bad filetype value)
.
Error in library(tkrplot) : .First.lib failed for 'tkrplot'


Is there a way to make it work ?

Thanks
Jean



-- 
Jean Thioulouse - Laboratoire de Biometrie et Biologie Evolutive
Universite Lyon 1 - Bat  711 - 69622 Villeurbanne Cedex - France
Fax: (33) 4 78 89 27 19              Tel/Fax: (33) 4 72 43 27 56
          http://pbil.univ-lyon1.fr/ADE-4/JTHome.html



More information about the R-SIG-Mac mailing list