Fabian
Fabian

Reputation: 1150

ImageMagick: OSError: /lib/libc.so.6: version `GLIBC_2.XX' not found

I am working on an embedded linux system and try to get python-wand running...

But i am not able to install anything on this system so i included them in the lib folder of my application (this folder will be linked to the system).

Its not possible to update the glibc version of the system.

To test if its working i am using:

from ctypes import *
cdll.LoadLibrary('libMagickWand-6.Q16.so.6')

This will throw:

OSError: /lib/libc.so.6: version `GLIBC_2.17' not found (required by ../libMagickCore-6.Q16.so.6)

So is it possible to build ImageMagick with a different glibc version packed ?

I am new to compiling but this should work if i can change glibc only for ImageMagick.

Is it possible if i compile ImageMagick with a older version of glibc ?
Is the compiled code affected by the gcc / glibc version ?

Upvotes: 1

Views: 1355

Answers (2)

Fabian
Fabian

Reputation: 1150

Finally i got this running on my embedded system:

  • Get same glibc/eglibc version on the cross compile system.
  • Compile imagemagick with this glibc version.

Don't forget to install libpng for png support...

Note:

If you want to use imagemagick combined with ghostscript to convert pdf -> images don't forget that ghostscript is licensed under AGPL and you cannot use this in your product unless you are using the same license, or buy the license....

Upvotes: 2

Bahram Ardalan
Bahram Ardalan

Reputation: 280

You may set the LD_LIBRARY_PATH to your path (./lib) before starting python.

If it's a headless system you may write a shell script besides your python script to set the variable right before starting the python and then start python. Then use that script in your autostart code.

Upvotes: 0

Related Questions