首页 > 系统相关 >ImageMagick:报错:error while loading shared libraries: libjpeg.so.9(ImageMagick 7.1/rocky linux 9.2)

ImageMagick:报错:error while loading shared libraries: libjpeg.so.9(ImageMagick 7.1/rocky linux 9.2)

时间:2023-07-12 20:13:12浏览次数:56  
标签:loading ImageMagick lib libjpeg 报错 usr conf so localhost

一,报错的例子:

1,报错信息

[root@localhost work]# identify -list format
identify: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory

2,原因:

imagemagick在调用jpeg的动态链接库时找不到相应的文件,所以报错

3,查看libjpeg:通常放在/usr/local/lib/

[root@localhost work]# ls /usr/local/lib/libjpeg.so*
/usr/local/lib/libjpeg.so  /usr/local/lib/libjpeg.so.9  /usr/local/lib/libjpeg.so.9.5.0

二,解决办法一:临时解决:

[root@localhost work]# ldconfig /usr/local/lib

再次执行identify命令可以正常执行

[root@localhost work]# identify -list format
   Format  Mode  Description
...

说明:刘宏缔的架构森林—专注it技术的博客,
网站:https://blog.imgtouch.com
原文: https://blog.imgtouch.com/index.php/2023/07/12/imagemagick-bao-cuo-error-while-loading-shared-libraries-libjpeg-so-9-imagemagick-7-1-rocky-linux-9/
代码: https://github.com/liuhongdi/ 或 https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: 371125307@qq.com

三,解决办法二:永久解决:保存库的路径

在/etc/ld.so.conf.d/目录下新建一个lib.conf文件,
添加libjpeg库所在的目录/usr/local/lib到文件中

[root@localhost etc]# cd /etc/ld.so.conf.d/
[root@localhost ld.so.conf.d]# pwd
/etc/ld.so.conf.d
[root@localhost ld.so.conf.d]# vi lib.conf
[root@localhost ld.so.conf.d]# more lib.conf
/usr/local/lib

添加完成后使生效:

[root@localhost ld.so.conf.d]# ldconfig -v
ldconfig: 无法对 /libx32 进行 stat 操作: 没有那个文件或目录
ldconfig: 多次给出路径“/usr/lib”
(from <builtin>:0 and <builtin>:0)
ldconfig: 多次给出路径“/usr/lib64”
(from <builtin>:0 and <builtin>:0)
ldconfig: 无法对 /usr/libx32 进行 stat 操作: 没有那个文件或目录
/usr/local/lib: (from /etc/ld.so.conf.d/lib.conf:1)
    libtiffxx.so.6 -> libtiffxx.so.6.0.1
    libtiff.so.6 -> libtiff.so.6.0.1
    libjpeg.so.9 -> libjpeg.so.9.5.0
    libwebpdemux.so.2 -> libwebpdemux.so.2.0.13
    libwebpmux.so.3 -> libwebpmux.so.3.0.12
    libwebp.so.7 -> libwebp.so.7.1.7
    libsharpyuv.so.0 -> libsharpyuv.so.0.0.1
...

四,查看linux的版本:

[root@localhost ImageMagick-7.1.1-12]# cat /etc/redhat-release
Rocky Linux release 9.2 (Blue Onyx)
 

标签:loading,ImageMagick,lib,libjpeg,报错,usr,conf,so,localhost
From: https://www.cnblogs.com/architectforest/p/17548695.html

相关文章

  • ImageMagick:编译安装前的准备工作(rocky linux 9.2)
    一,yum方式安装libwebp[root@localhostImageMagick-7.1.1-12]#yuminstalllibwebp[root@localhostImageMagick-7.1.1-12]#yuminstalllibwebp-devel二,yum方式安装libtiff[root@localhostImageMagick-7.1.1-12]#yuminstalllibtiff[root@localhostImageMagick-......
  • JMeter脚本报错:Cannot find engine named: 'javascript'的解决方法
    本文将介绍如何解决在JMeter版本5.4.1下执行脚本时出现的错误信息“javax.script.ScriptException:Cannotfindenginenamed:'javascript'”。通过将本地JDK版本从18.0.1.1更改为1.8.0_151来解决此问题。当使用JMeter进行脚本执行时,有时可能会遇到以下错误信息:javax.script......
  • k8s集群node NotReady处理流程-->kubelet状态error,并伴有报错:kubelet.service has mor
    k8s集群nodeNotReady处理流程-->kubelet状态error//20230712集群有节点NotReadykubelet状态error,并伴有报错:kubelet.servicehasmorethanoneExecStart=setting,whichisonlyallowedforType=oneshotservices.Refusing在此记录一下解决流程解决流程问题定位:使......
  • 报错知识库
    1.python项目部署报错pthread_createfailedforthread13of48:Resourcetemporarilyunavailable报错说明:线程数不够1)排错过程:ulimit-a查看docker基础镜像其中openfiles为一个任务打开的最大进程数maxuserprocesses为当前用户同时打开的最大进程数,(-u)unlimited为......
  • npm 安装报错-错误集景-持续更新
    错误信息npmERR!codeERESOLVEnpmERR!ERESOLVEunabletoresolvedependencytreenpmERR!npmERR!Found:eslint@7.15.0npmERR!node_modules/eslintnpmERR!deveslint@"7.15.0"fromtherootprojectnpmERR!peereslint@">=1.6.0&quo......
  • 解决docker报错Job for docker.service failed because start of the service was att
    转载自:https://blog.csdn.net/Along_168163/article/details/124118833=================== docker安装之后重新安装报错如下:Jobfordocker.servicefailedbecausestartoftheservicewasattemptedtoooften.See"systemctlstatusdocker.service"and"journa......
  • Redis 命令行中报错 (error) NOAUTH Authentication required
    本文来源:redis客户端连接错误NOAUTHAuthenticationrequired_Redis_脚本之家redis客户端连接成功,但是操作报异常——(error)NOAUTHAuthenticationrequired错误的含义是说你没有认证,说明没有使用密码连接查看密码:进入redis的安装目录,查看redis.config文件,viredis.conf......
  • rust-bindgen报错 ‘Unable to find libclang的解决办法
    Windows下面可能会遇到这个问题的解决方案:1)把LLVM安装到没有空格的路径。2)LIBCLANG_PATH的值不要加双引号。thread'main'panickedat'Unabletofindlibclang:"couldn'tfindanyvalidsharedlibrariesmatching:['clang.dll','libclang.dll'],setth......
  • django python manage.py migrate 后报错字段长度超了 django.db.utils.OperationalE
     现象:在models.py将CharField字段的maxlength=修改后,执行ythonmanage.pymigrate 报错django.db.utils.OperationalError:(1118 'Rowsizetoolarge.Themaximumrowsizefortheusedtabletype,notcountingBLOBs,is65535.Thisincludes storageoverhead,c......
  • django_filters/rest_framework/form.html的报错问题
    报错问题:django_filters/rest_framework/form.htm报错原因为:1没有装django_filters模块使用pip安装pipinstalldjango-filter2模块没有在配置文件中注册:将django_filters添加到installed_apps中INSTALLED_APPS=[...'django_filters',] ......