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

I cant install ragg on Ubuntu 20.04 #53

Closed
salvatirehbein opened this issue Sep 11, 2020 · 5 comments
Closed

I cant install ragg on Ubuntu 20.04 #53

salvatirehbein opened this issue Sep 11, 2020 · 5 comments

Comments

@salvatirehbein
Copy link

salvatirehbein commented Sep 11, 2020

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


@Timola96
Copy link

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

@jmbuhr
Copy link

jmbuhr commented Sep 30, 2020

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")

@jeroen
Copy link
Member

jeroen commented Oct 16, 2020

Is this an official R installation, or anaconda?

@salvatirehbein
Copy link
Author

@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

@csgillespie
Copy link

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

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

6 participants