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
Trying to install magick on centOS 6.9 in R 3.5.1 - error loading shared lib #166
Comments
ALso, FYI
|
One more, also crashes in the same way when doing a:
|
Are you sure you don't have an additional version of imagemagick built from source in
So I'm quite sure you have a local conflict with your ImageMagick installation. |
@jeroen not that I know of
I will do some digging around also
Also, the issue comes when building the r package. It builds fine but fails on test load. I can, however, load and older R imagemagick library just fine. I just cannot upgrade it? |
So I built the system libs from scratch and placed in our shared cluster storage/lib location. I am now trying to build/install r-magick libs from scratch, but...
so it seems to still fail with a complaint about building shared libs? I built magick with the options: ./configure --prefix=/data/software/ImageMagick/7.0.8-19 --disable-shared --enable-delegate-build Might be I messed up by trying to build static, trying again without disabling the shared libs |
OK, got it installed after a somewhat involved process.....not sure why it was so challenging on our cluster environment
I had to install some additional missing R depends: install.packages(‘rsvg’) The follow these instructions so I could build R pdftools
Then I did:
Then I did:
So it seems I have the package now. surprisingly difficult |
The The key here seems that you built a custom version of ImageMagick in |
Ah, got it. Thanks @jeroen. I am going to close this now since it seems to be sorted. Not sure if this thread would be helpful to anyone else but it will be in the closed and searchable issues if anyone else has a similar situation or setup. |
I faced a similar issue with R version-3.5.2 on CentOS 7. However, even when I did all that, I kept getting the same error as above. The reason was that when I had compiled R, the R library got linked to the old ImageMagick (version-7.0.8-12) that was built with a previous version of gcc (version-4.9.5). So even after rebuilding ImageMagick (this time version-7.0.8-24) with new gcc (version-7.3.0), which is the same gcc used to compile R, when I tried to install magick it still found the old ImageMagick (version-7.0.8-12) because it was linked to R library and I had not deleted the old installation of ImageMagick (version-7.0.8-12). see below:
You can see that in the very last compilation step
g++ is using both ImageMagick version-7.0.8-12 and version-7.0.8-24, the first one is carryover from when R was compiled. All I had to do is make the old installation unavailable and everything worked.
Now while installing magick within R the old installation was not found and shared libraries loaded correctly. this was a lot easier than compiling R again with correct dynamic link to new local install of ImageMagick:
Hope this saves someone else a few hours that I wasted!! |
Hello, First, I was having the following problem, which was "solved" by having the system administrator install the rpm for ImageMagick-c++-devel.
Then, when I try to install magick the following error occurs that is just like the ones listed above:
|
Hello, may I kindly ask did you solve this issue @CicadaDennis |
This seems to solve my issue for centos 8.0
some mistake I took
|
This happens after it builds the package during the load test. so it builds fine but the dyn.load() to the shared libs seems to fail?
The text was updated successfully, but these errors were encountered: