[英]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...我正在研究嵌入式 linux 系统并尝试让python-wand
运行...
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).但是我无法在这个系统上安装任何东西,所以我将它们包含在我的应用程序的 lib 文件夹中(这个文件夹将链接到系统)。
Its not possible to update the glibc version of the system.无法更新系统的 glibc 版本。
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) OSError:/lib/libc.so.6:未找到版本“GLIBC_2.17”(由../libMagickCore-6.Q16.so.6 要求)
So is it possible to build ImageMagick with a different glibc version packed?那么是否可以使用打包的不同 glibc 版本构建 ImageMagick?
I am new to compiling but this should work if i can change glibc only for ImageMagick.我是编译新手,但如果我只能为 ImageMagick 更改 glibc,这应该可以工作。
Is it possible if i compile ImageMagick with a older version of glibc?如果我用旧版本的 glibc 编译 ImageMagick 是否有可能?
Is the compiled code affected by the gcc / glibc version?编译后的代码是否受 gcc / glibc 版本影响?
Finally i got this running on my embedded system:最后我在我的嵌入式系统上运行了这个:
Don't forget to install libpng for png support...不要忘记安装 libpng 以获得 png 支持...
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....如果你想使用 imagemagick 结合 ghostscript 来转换 pdf -> 图像不要忘记 ghostscript 是在 AGPL 下授权的,除非你使用相同的许可证,否则你不能在你的产品中使用它,或者购买许可证....
You may set the LD_LIBRARY_PATH to your path (./lib) before starting python.您可以在启动 python 之前将 LD_LIBRARY_PATH 设置为您的路径 (./lib)。
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.如果它是一个无头系统,您可以在 python 脚本之外编写一个 shell 脚本来在启动 python 之前设置变量,然后启动 Z26523EEEB4943BDD775DDB6. Then use that script in your autostart code.然后在您的自动启动代码中使用该脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.