[R] Broken tkrplot on Mac OS X

From: Marco Blanchette <mblanche_at_uclink.berkeley.edu>
Date: Sat 13 Aug 2005 - 10:53:50 EST


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@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 13 11:36:49 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:48 EST