Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package cannot be installed on Centos7 #14

Open
OlesjaN opened this issue Oct 13, 2020 · 5 comments
Open

Package cannot be installed on Centos7 #14

OlesjaN opened this issue Oct 13, 2020 · 5 comments

Comments

@OlesjaN
Copy link

OlesjaN commented Oct 13, 2020

I tried to install the package on Centos 7 but installation process was not succesfull, ( I have R version 3.6.0)

image

@ghost
Copy link

ghost commented Oct 13, 2020

I have checked the issue. The problem is in X11 availability. As I understand X11 is required for the package on Linux. It is possible to install and load the package if X11 is available on Linux (CentOS 7). It is possible to check X11 availability with capabilities("X11").

> capabilities("X11")
 X11
TRUE

The problem is that X11 is not available through RStudio Server web interface. Running R from terminal or RStudio Desktop (on Linux) is fine.

@jverzani
Copy link
Owner

Sorry, I'm not sure where X11 gets pulled in except through the tcltk dependency which seems necessary. Any help would be appreciated.

(I need to move discussions over to https://github.com/gwidgets3 where I put the gWidgets code all in one place.

@malcook
Copy link

malcook commented Oct 27, 2020

Did the above backtrace happen during package installation or while trying to load it? Can you give the full trace?

@ghost
Copy link

ghost commented Oct 28, 2020

It happens in both cases - installing and loading. For example, I have installed the gWidgets2tcltk through terminal with X11 forwarding. So I have it available. However I am not able to reinstall or load it through RStudio Server web GUI.

Restarting R session...

> capabilities("X11")
  X11 
FALSE 
> 
> installed.packages()["gWidgets2tcltk", ]
                                                                         Package 
                                                                "gWidgets2tcltk" 
                                                                         LibPath 
                          "/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0" 
                                                                         Version 
                                                                         "1.0-6" 
                                                                        Priority 
                                                                              NA 
                                                                         Depends 
"R (>= 2.12.0), methods, digest, memoise, tcltk(>= 2.7.0),\ngWidgets2(>= 1.0.7)" 
                                                                         Imports 
                                                                              NA 
                                                                       LinkingTo 
                                                                              NA 
                                                                        Suggests 
                                                                      "testthat" 
                                                                        Enhances 
                                                                              NA 
                                                                         License 
                                                                    "GPL (>= 2)" 
                                                                 License_is_FOSS 
                                                                              NA 
                                                           License_restricts_use 
                                                                              NA 
                                                                         OS_type 
                                                                              NA 
                                                                          MD5sum 
                                                                              NA 
                                                                NeedsCompilation 
                                                                            "no" 
                                                                           Built 
                                                                         "4.0.2" 
> 
> install.packages("gWidgets2tcltk")
Installing package into ‘/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://packagemanager.rstudio.com/all/__linux__/centos8/latest/src/contrib/gWidgets2tcltk_1.0-6.tar.gz'
Content type 'application/x-tar' length 508497 bytes (496 KB)
==================================================
downloaded 496 KB

* installing *source* package ‘gWidgets2tcltk’ ...
** package ‘gWidgets2tcltk’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Warning message:
In fun(libname, pkgname) : couldn't connect to display ":0"
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : 
  [tcl] invalid command name "font".

Error: unable to load R code in package ‘gWidgets2tcltk’
Execution halted
ERROR: lazy loading failed for package ‘gWidgets2tcltk’
* removing ‘/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0/gWidgets2tcltk’
* restoring previous ‘/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0/gWidgets2tcltk’
Warning in install.packages :
  installation of package ‘gWidgets2tcltk’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpAVioHo/downloaded_packages’
> 
> library("gWidgets2tcltk")
Loading required package: digest
Loading required package: memoise
Loading required package: tcltk
Loading required package: gWidgets2
Error: package or namespace load failed for ‘gWidgets2tcltk’:
 .onAttach failed in attachNamespace() for 'gWidgets2tcltk', details:
  call: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
  error: [tcl] can't create procedure "tablelist::extendConfigSpecs": unknown namespace.
In addition: Warning messages:
1: In fun(libname, pkgname) : couldn't connect to display ":0"
2: In tclRequire("tablelist") : Tcl package 'tablelist' not found

@ghost
Copy link

ghost commented Oct 28, 2020

The previous example works from terminal with the X11 forwarding enabled.

R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> capabilities("X11")
 X11
TRUE
>
> installed.packages()["gWidgets2tcltk", ]
                                                                         Package
                                                                "gWidgets2tcltk"
                                                                         LibPath
                          "/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0"
                                                                         Version
                                                                         "1.0-6"
                                                                        Priority
                                                                              NA
                                                                         Depends
"R (>= 2.12.0), methods, digest, memoise, tcltk(>= 2.7.0),\ngWidgets2(>= 1.0.7)"
                                                                         Imports
                                                                              NA
                                                                       LinkingTo
                                                                              NA
                                                                        Suggests
                                                                      "testthat"
                                                                        Enhances
                                                                              NA
                                                                         License
                                                                    "GPL (>= 2)"
                                                                 License_is_FOSS
                                                                              NA
                                                           License_restricts_use
                                                                              NA
                                                                         OS_type
                                                                              NA
                                                                          MD5sum
                                                                              NA
                                                                NeedsCompilation
                                                                            "no"
                                                                           Built
                                                                         "4.0.2"
>
> install.packages("gWidgets2tcltk", repos = "https://packagemanager.rstudio.com/all/__linux__/centos8/latest")
Installing package into ‘/home/mliberts/R/x86_64-redhat-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://packagemanager.rstudio.com/all/__linux__/centos8/latest/src/contrib/gWidgets2tcltk_1.0-6.tar.gz'
Content type 'application/x-tar' length 508497 bytes (496 KB)
==================================================
downloaded 496 KB

* installing *source* package ‘gWidgets2tcltk’ ...
** package ‘gWidgets2tcltk’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘gWidgets2tcltk’
    finding HTML links ... done
    GComponentObservable                    html
    GEdit-class                             html
    GMenuBar                                html
    GSpinButton                             html
    GStatusBar                              html
    GToolBar-class                          html
    List-class                              html
    gWidgets2tcltk-package                  html
    gWidgets2tcltk-undocumented             html
    finding level-2 HTML links ... done

    getWidget.tkwin                         html
    guiWidgetsToolkittcltk-class            html
    gwidgets2_tcltk_column_alignment        html
    gwidgets2_tcltk_format_to_char          html
    makeCalendar                            html
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (gWidgets2tcltk)

The downloaded source packages are in
        ‘/tmp/Rtmp2oVwtS/downloaded_packages’
> library("gWidgets2tcltk")
Loading required package: digest
Loading required package: memoise
Loading required package: tcltk
Loading required package: gWidgets2
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants