ragg icon indicating copy to clipboard operation
ragg copied to clipboard

I cant install ragg on Ubuntu 20.04

Open salvatirehbein opened this issue 3 years ago • 5 comments

Hello,

When I was trying to install https://github.com/r-lib/pkgdown, I receive an error when installing ragg. Then I tried to install ragg I receive the following error. Do you know what could be the reason? Many thanks

...
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘ragg’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/amanda/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-ragg/00new/ragg/libs/ragg.so':
  /home/amanda/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-ragg/00new/ragg/libs/ragg.so: undefined symbol: _Z21jpeg_destroy_compressP20jpeg_compress_struct
Error: loading failed
Execution halted

sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2 

> .libPaths()
[1] "/home/amanda/R/x86_64-pc-linux-gnu-library/4.0"
[2] "/usr/local/lib/R/site-library"                 
[3] "/usr/lib/R/site-library"                       
[4] "/usr/lib/R/library"         

And on the terminal

                          ./+o+-       amanda@huawei
                  yyyyy- -yyyyyy+      OS: Ubuntu 20.04 focal
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 5.4.0-47-generic
           .++ .:/++++++/-.+sss/`      Uptime: 38m
         .:++o:  /++++++++/:--:/-      Packages: 2672
        o:+o+:++.`..```.-/oo+++++/     Shell: bash 5.0.17
       .:+o:+o/.          `+sssoo+/    Resolution: 1680x1050
  .++/+:+oo+o:`             /sssooo.   DE: GNOME 3.36.4
 /+++//+:`oo+o               /::--:.   WM: Mutter
 \+/+o+++`o++o               ++////.   WM Theme: Adwaita
  .++.o+++oo+:`             /dddhhh.   GTK Theme: Adwaita [GTK2/3]
       .+.o+oo:.          `oddhhhh+    Icon Theme: Adwaita
        \+.++o+o``-````.:ohdhhhhh+     Font: Ubuntu 11
         `:o+++ `ohhhhhhhhyo++os:      Disk: 146G / 308G (50%)
           .o:`.syhhhhhhh/.oo++o`      CPU: Intel Core i5-8265U @ 8x 3.9GHz [68.0°C]
               /osyyyyyyo++ooo+++/     GPU: Intel Corporation UHD Graphics 620 (Whiskey Lake) (rev 02)
                   ````` +oo+++o\:     RAM: 4467MiB / 7706MiB


salvatirehbein avatar Sep 11 '20 10:09 salvatirehbein

for me sudo apt install libtiff-dev worked (also Ubuntu 20.4)

Timola96 avatar Sep 16 '20 17:09 Timola96

It didn't work for me either, but the latest commit before the CI failes does. You can install it with remotes::install("r-lib/ragg@bc501c9951c5934afa55da6d36cdf03c2705d99f")

jmbuhr avatar Sep 30 '20 11:09 jmbuhr

Is this an official R installation, or anaconda?

jeroen avatar Oct 16 '20 11:10 jeroen

@jmbuhr It didn't work.

** testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘ragg’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/amanda/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-ragg/00new/ragg/libs/ragg.so': /home/amanda/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-ragg/00new/ragg/libs/ragg.so: undefined symbol: _Z21jpeg_destroy_compressP20jpeg_compress_struct Error: loading failed Execution halted ERROR: loading failed

  • removing ‘/home/amanda/R/x86_64-pc-linux-gnu-library/4.0/ragg’ Error: Failed to install 'ragg' from GitHub: (converted from warning) installation of package ‘/tmp/RtmpsCu8NZ/file909638e3eb8c/ragg_0.2.0.9000.tar.gz’ had non-zero exit status

@jeroen official R installation

salvatirehbein avatar Oct 17 '20 01:10 salvatirehbein

Looking at your installation path, I think you are using RSPM. When I've had odd issues like this (not with {ragg}) I tried installing via the old fashioned rstudio.cloud CRAN mirror.

Note: using RSPM shouldn't be an issue, but then neither should installing on ubuntu

csgillespie avatar Jan 26 '21 13:01 csgillespie