rocker-org / rocker

R configurations for Docker
https://rocker-project.org
GNU General Public License v2.0
1.45k stars 273 forks source link

Warning: unable to load shared object 'R_X11.so': libXt.so.6: cannot open shared object file #490

Open vebaev opened 2 years ago

vebaev commented 2 years ago

I got constant warning:

Warning message: In grSoftVersion() : unable to load shared object '/usr/local/lib/R/modules//R_X11.so': libXt.so.6: cannot open shared object file: No such file or directory

I also wanted to fix maybe the issue with solution I found somewhare - apt-get install -y --no-install-recommends libxt6, but I couldnt find the sudo password to do this in the terminal in Rstudio?

eitsupi commented 2 years ago

What is the image you are using? (if you can provide the repo digest it will help us to reproduce the issue)

$ docker inspect rocker/r-ver | jq '.[].RepoDigests[]'
"rocker/r-ver@sha256:9305f45341433daac40ccdc6185b5ccbeab0184abcd82868dc2bda6c958a7b60"

By the way, in my experience, you can ignore that warning.

eddelbuettel commented 2 years ago

Irreproducible in the repo against which this was filed:

edd@rob:~$ docker run --rm -ti rocker/r-base:4.2.0 R

R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-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.

> grSoftVersion()
                   cairo                  cairoFT                    pango 
                "1.16.0"                       ""                 "1.50.6" 
                  libpng                     jpeg                  libtiff 
                "1.6.37"                    "6.2" "LIBTIFF, Version 4.3.0" 
>