简体   繁体   English

ImageMagick:OSError:/lib/libc.so.6:未找到版本“GLIBC_2.XX”

[英]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:最后我在我的嵌入式系统上运行了这个:

  • Get same glibc/eglibc version on the cross compile system.在交叉编译系统上获取相同的 glibc/eglibc 版本。
  • Compile imagemagick with this glibc version.使用这个 glibc 版本编译 imagemagick。

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.

相关问题 在CentOS上导入mxnet时,获取:OSError:/lib64/libc.so.6:找不到版本“ GLIBC_2.17” - when import mxnet on CentOS, get: OSError: /lib64/libc.so.6: version `GLIBC_2.17' not found ImportError:/lib64/libc.so.6:导入张量流后找不到版本`GLIBC_2.15' - ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found after importing tensorflow 导入错误:/lib/arm-linux-gnueabihf/libc.so.6:未找到版本“GLIBC_2.28” - ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found /lib64/libc.so.6:在 Aws Lambda 服务器中找不到版本“GLIBC_2.22” - /lib64/libc.so.6: version `GLIBC_2.22' not found in Aws Lambda Server /lib64/libc.so.6:未找到版本“GLIBC_2.14” - 使用 pyinstaller 构建应用程序时出错 - /lib64/libc.so.6: version `GLIBC_2.14' not found - error from the application build using pyinstaller 加载 Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0' 时出错:dlopen: /lib/x86_64-linux-gnu/libc.so.6: 找不到版本 'GLIBC_2.28' - Error loading Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found Ubuntu 16.04 LTS 中的 Python 给出错误 /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.25' not found - Python in Ubuntu 16.04 LTS gives error /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.25' not found 无法导入 PyTorch/XLA 以在 CoLab 中使用 TPU 并出现 ImportError:/lib/x86_64-linux-gnu/libc.so.6:找不到版本“GLIBC_2.28” - Cannot import PyTorch/XLA for using TPU in CoLab with ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found ImportError:符号 __res_maybe_init 版本 GLIBC_PRIVATE 未在带有链接时间参考的文件 libc.so.6 中定义 - ImportError: symbol __res_maybe_init version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference python3: /lib/x86_64-linux-gnu/libm.so.6: 找不到版本“GLIBC_2.29”(python3 需要) - python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM