[R] Broken tkrplot on Mac OS X

Marco Blanchette mblanche at uclink.berkeley.edu
Sat Aug 13 02:53:50 CEST 2005


Dear all--

I have been trying to get the tkrplot package to work in order to use the
bioconductor package genArise.

I am trying to build it on a Mac running OS 10.4.1 with R 2.1.1. Following a
stanadard install from R here the error I get when I try to load tkrplot

> library(tkrplot)
 Loading required package: tcltk
 Loading Tcl/Tk interface ... done
 Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
 "tclObj") : 
         [tcl] no suitable image found.  Did find:
         
 /Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/tkrplot/li
b
 s/tkrplot.so: not a dylib.
 Error in library(tkrplot) : .First.lib failed for 'tkrplot'

Gustavo Corral suggestion was to rebuild the tkrplot.so bundle as a library
by doing:

> It can be rather tricky to make it work. You have to download it, then
> install it with R CMD INSTALL, then you may need to edit the file Makeconf in
> the RHOME/etc directory (the command R RHOME says the path to RHOME
> directory).
> In this file you must change:
> 
> (line 41 in my case)
> SHLIB_CXXLDFLAGS = -bundle -flat_namespace -undefined suppress
> replaced by:
> SHLIB_CXXLDFLAGS = -dynamiclib -flat_namespace -undefined suppress
> 
> (line 45 ...)
> SHLIB_LDFLAGS = -bundle -flat_namespace -undefined suppress
> replaced by:
> SHLIB_LDFLAGS = -dynamiclib -flat_namespace -undefined suppress
> 
> then move to the src directory in the tkrplot you just download and link
> tkrplot
> with the statement: R CMD SHLIB -o tkrplot.so. Then move tkrplot.so by hand to
> 
> the libs directory of the tkrplot installation (RHOME/library/tkrplot/libs).

That what I did. Now I am having a different error when I try to load
tkrplot...

> library(tkrplot)
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
"tclObj") : 
        [tcl] couldn't find procedure Rplot_Init.
Error in library(tkrplot) : .First.lib failed for 'tkrplot'

Any clue as how to fix tkrplot?

Why is this package so difficult to install???

Anyway, I would appreciate any help/suggestions.

Many tx

Marco

Marco Blanchette, Ph.D.

mblanche at uclink.berkeley.edu

Donald C. Rio's lab
Department of Molecular and Cell Biology
16 Barker Hall
University of California
Berkeley, CA 94720-3204

Tel: (510) 642-1084
Cell: (510) 847-0996
Fax: (510) 642-6062




More information about the R-help mailing list