Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jwhite
    Member
    • Jun 2012
    • 33

    #1

    R and Tcl/Tk system libraries

    Hi,

    For the past several days I've been fighting with R to install a software package "compcodeR". This package requires Tcl/Tk libraries be installed on the system. So I installed these libraries on our cluster (since they were not present). The install location is /usr/local/lib for Tcl/Tk 8.6.

    Unfortunately, R will not install the compcodeR package because it cannot detect the Tcl or Tk libraries. (Yes, the libraries exists and are functional.) Adding /usr/local/lib to the $PATH and $LD_LIBRARY_PATH env. variables made no difference. Copying the .so library files to R's lib directory --as other libraries are--made no difference. R still complains that it cannot detect the tcl/tk libraries.

    Has anyone else had a similar problem? Does anyone know why R cannot detect these libraries even after setting up the environment? Am I using the wrong env variable?

    Any help is appreciated.
    Thanks,
    Joe White
    MEEI
    Boston
  • Jeremy
    Senior Member
    • Nov 2009
    • 190

    #2
    I think R needs to be compiled with tcl/tk already installed. Some packages need the dev version of tcl/tk and won't work with the normal version.

    What does R say when you give it: capabilities("tcltk")

    Comment

    • jwhite
      Member
      • Jun 2012
      • 33

      #3
      Originally posted by Jeremy View Post
      I think R needs to be compiled with tcl/tk already installed. Some packages need the dev version of tcl/tk and won't work with the normal version.

      What does R say when you give it: capabilities("tcltk")
      FALSE

      possibly because the shared object libraries aren't available or in the right place.

      This is the error returned during package installation:

      [...snip...]
      ** preparing package for lazy loading
      Warning: S3 methods as.character.tclObj, as.character.tclVar,
      as.double.tclObj, as.integer.tclObj, as.logical.tclObj, as.raw.tclObj,
      print.tclObj, [[.tclArray, [[<-.tclArray, $.tclArray, $<-.tclArray,
      names.tclArray, names<-.tclArray, length.tclArray, length<-.tclArray,
      tclObj.tclVar, tclObj<-.tclVar, tclvalue.default, tclvalue.tclObj,
      tclvalue.tclVar, tclvalue<-.default, tclvalue<-.tclVar,
      close.tkProgressBar were declared in NAMESPACE but not found
      Error : .onLoad failed in loadNamespace() for 'tcltk', details:
      call: fun(libname, pkgname)
      error: Tcl/Tk support is not available on this system
      ERROR: lazy loading failed for package compcodeR
      * removing /opt/R-3.0.2/lib64/R/library/compcodeR
      Warning message:
      In install.packages("compcodeR_1.0.0.tar.gz") :
      installation of package compcodeR_1.0.0.tar.gz had non-zero exit status

      The same error occurs if the package is installed from the command-line.

      Joe White

      Comment

      • IsBeth
        Member
        • Nov 2013
        • 28

        #4
        Same error...

        Hello!

        I know this thread is a little bit old but I've got the same error with compcodeR now. The installation seems to work well, but when I try to load the library the following error appears:

        sh: otool: command not found
        Error : .onLoad failed in loadNamespace() for 'tcltk', details:
        call: system2("otool", c("-L", shQuote(DLL)), stdout = TRUE)
        error: error in running command

        Do you know any trick to fix this? I've never had troubles with compcodeR before, so I'm a bit confused. It worked well until now
        Last edited by IsBeth; 12-01-2014, 08:06 AM.

        Comment

        • Richard Finney
          Senior Member
          • Feb 2009
          • 701

          #5
          otool is pretty much Apple Mac specific.
          You need to install the developer tools to get access to otool. I'm not sure if you need Xcode, too.

          http://superuser.com/questions/23550...mand-not-found

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...