Skip to content

Broken tkrplot on Mac OS X

2 messages · Marco Blanchette, Luke Tierney

#
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
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:
That what I did. Now I am having a different error when I try to load
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
3 days later
#
Because of the way Tcl works the C code needs to be linked into a
dylib rather than the other thing.  I keep meaning to either put in a
README.MacOSX or figure out a way to get configure to deal with this
but never get around to it.  Here is the strategy that works for me
(from notes and memory--I may have got a detail wrong):

      Download, untar, and run R CMD INSTALL

      cd to the src directory and repeat the final link command with
      -bundle replaced by -dynamiclib

      Then move the new trkplot.so by hand to the lib directory of the
      installed package

If you are offended by a .so extension on a dylib you can change the
extension and the R code that load it.

If you figure out a better way to do this please let me know,

Best,

luke
On Thu, 12 May 2005, stefano iacus wrote:

            
-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
     Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu
On Fri, 12 Aug 2005, Marco Blanchette wrote: