ropensci / magick

Magic, madness, heaven, sin
https://docs.ropensci.org/magick
Other
462 stars 65 forks source link

installation error #320

Closed englianhu closed 3 years ago

englianhu commented 3 years ago

Install latest ImageMagick version on Ubuntu 20.04 LTS via https://gist.github.com/zulhfreelancer/e104e4b330c8dbc6622d92b8cd525bf6#gistcomment-3769876

x [master]> library(splashr)
ℹ splashr not installed. Trying to install now
ℹ Installing splashr
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Error: package or namespace load failed for 'splashr' in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/lib/R/library/magick/libs/magick.so':
  /usr/lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in static TLS block
x [master]> library(magick)
ℹ magick not installed. Trying to install now
ℹ Installing magick
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Error: package or namespace load failed for 'magick' in get(method, envir = envir):
 lazy-load database '/usr/lib/R/library/magick/R/magick.rdb' is corrupt
In addition: Warning message:
In get(method, envir = envir) : internal error -3 in R_decompress1
-unable to load shared object '/usr/lib/R/library/magick/libs/magick.so':
-  /usr/lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in static TLS block

above error refer to https://github.com/jemalloc/jemalloc/issues/1237, and refer to https://gist.github.com/diginfo/be7347e6e6c4f05375c51bca90f220e8#gistcomment-3770725 and installed but doesn't help.

Originally posted by @englianhu in https://github.com/hrbrmstr/splashr/issues/23#issuecomment-855445488

https://github.com/hrbrmstr/splashr/issues/23#issuecomment-855445488

englianhu commented 3 years ago

2021-06-07_04-15 download GitHub repo and installed as above.