Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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.

          Trying to use otool -L in place of ldd, but it says it can't be found... As root, even running a locate otools in terminal shows nothing... Is it not on Snow Leopard? Does anyone know where it is?

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM
          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          18 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          22 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          17 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          48 views
          0 likes
          Last Post seqadmin  
          Working...
          X