libGraphicsMagickWand.so: cannot open shared object file: No such file or direct

作者:佚名 上传时间:2019-04-08 版权申诉

参考博文:http://www.linuxidc.com/Linux/2016-07/133213.htm

libGraphicsMagickWand.so: cannot open shared object file: No such file or direct

==>> Check Passed, the num of bbox and frames are equal ...
qlua: ...iao/torch/install/share/lua/5.1/graphicsmagick/Image.lua:322: libGraphicsMagickWand.so: cannot open shared object file: No such file or directory
stack traceback:
[C]: at 0x7fc0c20e2b60
[C]: in function 'load'
...iao/torch/install/share/lua/5.1/graphicsmagick/Image.lua:322: in main chunk
[C]: in function 'require'
...xiao/torch/install/share/lua/5.1/graphicsmagick/init.lua:2: in main chunk
[C]: in function 'require'
./test_tracker.lua:105: in main chunk


Solution:

安装GraphicsMagick步骤如下:

1. 去官网下载GraphicsMagick: http://www.graphicsmagick.org/

2. 解压后,cd到该文件夹中。

3. 运行如下命令:

./configure '--with-magick=wand/GraphicsMagickWand-config' '--enable-shared'

说明: 第一个with是生成libGraphicsMagickWand.so(可能默认没有生成这个,在lib里面确实没有看到这个库),第二个with是生成共享库(默认可能是静态的吧,我开始没用第二个,得到的库后缀是.a)

4. 运行如下命令:

make
sudo make install

5. 到此之后,提示找不到libGraphicsMagickW.so.3,后来在网上继续搜索。网址: http://comments.gmane.org/gmane.comp.video.graphicsmagick.core/514 中Nguyen Vu Hung给出了解决方法:

试着在终端中敲这些命令,如下:

sudo echo “/usr/local/lib”
sudo /sbin/ldconfig

6. 在终端输入: gm,显示如下图,表示安装成功:




继续测试 require 该包:

libGraphicsMagickWand.so: cannot open shared object file: No such file or direct

输出是:

libGraphicsMagickWand.so: cannot open shared object file: No such file or direct

至此,总算是搞定了这个问题,感谢!My God !!!

免责申明:文章和图片全部来源于公开网络,如有侵权,请通知删除 server@dude6.com

用户评论
相关推荐
libGraphicsMagickWand.so: cannot open shared object file: No such file or direct
参考博文:http://www.linuxidc.com/Linux/2016-07/133213.htm
ImportError libcud.so.cannot open shared object file No such file or direc
ImportError: libcud*.so.*: cannot open shared object file: No such file or directory 1. ImportError:
PDF
19KB
2021-02-01 17:47
cuda报错OSError libcudart.so.10.0cannot open shared object file No such file
有时候会碰到cuda报错,OSError: libcudart.so.10.0: cannot open shared object file: No such file 原因是cuda动态链接库没有
PDF
67KB
2021-01-16 07:42
ubuntu报错libg2c.so.0cannot open shared object file no such file or directory w
ubuntu报错:libg2c.so.0:cannot open shared object file: no such file or directory/wrong ELF class(已解决)-
TXT
23B
2021-05-08 20:19
Cannot open include file streambuf No such file or directory
有时候非安装版的VC++6.0会出现'streambuf':Nosuchfileordirectory的问题,原因在于你的库函数少了,下载这个文件将其放到E:\安装程序\microsoft_visua
RAR
0B
2020-05-17 20:01
ORACLE RAC--cannot open shared object file
ORACLE RAC -- libpthread.so.0: cannot open shared object file 解决
Cannot open include file stdint.h No such file or directory
stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“Nosuchfileordirectory”的。去googlecode下载http://msinttypes.googlecode.c
ZIP
0B
2020-05-23 04:27
FreeBSD中出现'cannot open shared object file'错误
在FreeBSD中,'cannot open shared object file'错误通常是由动态链接库(shared object)路径问题引起的。这可能是由于库文件不在系统默认的库搜索路径中。要
FreeBSD
FreeBSD
2023-12-13 08:44
记录 libldap-2.4.so.2: cannot open shared object file: No such file or directory
1.背景: 卸载openldap相关的所有rpm包后,出现libldap-2.4.so.2: cannot open shared object file: No such file
Solaris下如何解决'cannot open shared object file: No such file or directory'错误?
这个错误通常是由于系统无法找到所需的共享对象文件导致的。要解决这个问题,可以执行以下步骤:检查共享库路径:确保程序依赖的共享对象文件存在于系统的库路径中。可以使用 ldd 命令查看程序所需的共享
Solaris
Solaris
2023-12-01 10:51