LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Tcl problem when trying to install R-package "RQDA" (https://www.linuxquestions.org/questions/slackware-14/tcl-problem-when-trying-to-install-r-package-rqda-4175629161/)

sababa.sababa 05-06-2018 11:54 PM

Tcl problem when trying to install R-package "RQDA"
 
Hello,

I've installed R and R-studio. Then I tried to install the package "RQDA":

Code:

$ su -
...
Code:

$ R
> install.packages("RQDA",dependencies=c("Depends", "Imports"))
--- Please select a CRAN mirror for use in this session ---
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Can't find a usable init.tcl in the following directories:
    /opt/transcriber/lib/tcl8.4 /opt/transcriber/lib/tcl8.4



This probably means that Tcl wasn't installed properly.


Thanks in advance for ideas!

sababa.sababa 05-07-2018 03:34 AM

I solved it by:

Code:

$ find / -iname *init.tcl*
...and then:

Code:

$ mkdir -p /opt/transcriber/lib/tcl8.4
$ ln -s /usr/local/lib/tcl8.4/init.tcl /opt/transcriber/lib/tcl8.4/init.tcl


Didier Spaier 05-07-2018 03:36 AM

I just installed R just to try, ran it as regular user and typed the same command at the prompt.

When asked, I chose to install in a personal directory not to mess up my system with files I will never use.

Installation failed for missing deps but I had no issue with tcl.

As a reminder Slackware proper doesn't install anything in /opt.

For the sake of completeness here the end of the buildoutput:
Code:

installing to /home/didier/R/x86_64-slackware-linux-gnu-library/3.3/igraph/libs
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (igraph)
* installing *source* package ‘blob’ ...
** package ‘blob’ correctement décompressé et sommes MD5 vérifiées
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (blob)
ERROR: dependencies ‘BH’, ‘plogr’ are not available for package ‘RSQLite’
* removing ‘/home/didier/R/x86_64-slackware-linux-gnu-library/3.3/RSQLite’
ERROR: dependencies ‘RSQLite’, ‘gWidgetsRGtk2’, ‘RGtk2’ are not available for package ‘RQDA’
* removing ‘/home/didier/R/x86_64-slackware-linux-gnu-library/3.3/RQDA’

Les packages source téléchargés sont dans
        ‘/tmp/RtmpsD0aqy/downloaded_packages’
Warning messages:
1: In install.packages("RQDA", dependencies = c("Depends", "Imports")) :
  l'installation du package ‘gWidgetsRGtk2’ a eu un statut de sortie non nul
2: In install.packages("RQDA", dependencies = c("Depends", "Imports")) :
  l'installation du package ‘RSQLite’ a eu un statut de sortie non nul
3: In install.packages("RQDA", dependencies = c("Depends", "Imports")) :
  l'installation du package ‘RQDA’ a eu un statut de sortie non nul
>

PS Too late, I didn't see your second post before posting.

heyjann 05-07-2018 11:12 AM

Quote:

Originally Posted by Didier Spaier (Post 5851525)
As a reminder Slackware proper doesn't install anything in /opt.

And I wonder what any tcl stuff was doing in /usr/local/lib, tcl/tk is part of a Slackware full install (so /usr/lib(64) would be expected).

@sababa did you install R using the slackbuild found at http://slackbuilds.org/repository/14.2/academic/R/ ? If not, I'd recommend doing so.

As for rstudio, I would agree, put it in /opt

https://www.linuxquestions.org/quest...4/#post5812597


All times are GMT -5. The time now is 09:45 PM.