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

libMagickCore-7.Q16HDRI.so.6 not found #229

Open
rdmorin opened this issue Jan 20, 2020 · 4 comments
Open

libMagickCore-7.Q16HDRI.so.6 not found #229

rdmorin opened this issue Jan 20, 2020 · 4 comments

Comments

@rdmorin
Copy link

rdmorin commented Jan 20, 2020

I am encountering a fatal error when attempting to use the Magick R package installed through conda.

The relevant packages I have installed are:

r-magick 2.2 r36h0357c0b_0 conda-forge
imagemagick 7.0.9_2 pl526hccb53ba_0 conda-forge

The error message is:

Error: package or namespace load failed for ‘magick’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object ‘/projects/HTMCP_DLBCL/.snakemake/conda/a65d0466/lib/R/library/magick/libs/magick.so’:
libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
Execution halted

If I run ldd on the magick.so file included with the conda recipe, the libMagickCore-7.Q16HDRI.so.6 file is indeed not found or linked properly:

   linux-vdso.so.1 =>  (0x00007ffef534c000)
   libMagick++-7.Q16HDRI.so.4 => >/projects/HTMCP_DLBCL/.snakemake/conda/a65d0466/lib/R/library/magick/libs/../../../../libMagick++-7.Q16HDRI.so.4 (0x00007f70b55b9000)
   libMagickCore-7.Q16HDRI.so.6 => not found

I am wondering if this package is necessary still or is a remnant of an older recipe. In any case, is there a workaround for this?

@jeroen
Copy link
Member

jeroen commented Jan 20, 2020

I think you have to report this in conda. It looks like they have upgraded imagemagick but need to recompile r-magick.

Btw we strongly recommend not using anaconda and instead download the official R for mac from CRAN: https://cran.r-project.org/bin/macosx/ . This version is guaranteed to always work.

@rdmorin
Copy link
Author

rdmorin commented Jan 20, 2020

Thanks for pointing this out. I cannot install the imagemagick package because I don't have admin on this system. I'll report the issue to the maintainers of the r-magick conda recipe. Hopefully they can recompile it.

@dmi3kno
Copy link
Contributor

dmi3kno commented May 12, 2020

On Ubuntu I have seen similar error and then ldconfig helped.
https://stackoverflow.com/questions/50602024/error-while-loading-shared-libraries-libmagickcore-7-q16hdri-so-6

@HannoSpreeuw
Copy link

add some path from the output of
locate libMagickCore-7.Q16HDRI.so.6
to your LD_LIBRARY_PATH by setting
export LD_LIBRARY_PATH=/my/hidden/path/to/libMagickCore-7.Q16HDRI.so.6.

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

4 participants