我已在 TP-Link TL-WR740N/ND v4 上安装了 Open Wrt。一切正常,但 Imagemagick 除外。我已将其安装到 ram 中(ROM 上没有足够的空间)opkg
# opkg install imagemagick imagemagick-png imagemagick-jpeg imagemagick-tools -d ram
...
...
# opkg list-installed | grep imagema
imagemagick - 6.7.8-1
imagemagick-jpeg - 6.7.8-1
imagemagick-png - 6.7.8-1
imagemagick-tools - 6.7.8-1
但我没有得到,UnableToOpenConfigureFile
因为没有配置文件。有人知道如何省略它吗?
# convert -debug configure picture.jpeg picture.jpeg
2013-10-14T14:45:24+00:00 0:00.010 0.010u 6.7.8 Configure convert[2677]: utility.c/ExpandFilenames/939/Configure
Command line: convert {-debug} {configure} {picture.jpeg} {picture.jpeg}
2013-10-14T14:45:24+00:00 0:00.020 0.020u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/coder.xml"
2013-10-14T14:45:24+00:00 0:00.020 0.020u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/coder.xml"
2013-10-14T14:45:24+00:00 0:00.060 0.060u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/magic.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.100 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.100 0.090u 6.7.8 Configure convert[2677]: delegate.c/LoadDelegateList/1228/Configure
Loading delegate configuration file "built-in" ...
convert: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/591.
convert: NoDecodeDelegateForThisImageFormat `picture.jpeg' @ error/constitute.c/ReadImage/544.
convert: NoImagesDefined `picture.jpeg' @ error/convert.c/ConvertImageCommand/3044.
编辑
我现在尝试将我的代表从 ubuntu 盒子复制到路由器,但没有成功。
现在我刚刚摆脱了UnableToOpenConfigureFile
# convert -debug configure picture.jpeg picture.jpeg
2013-10-14T15:14:34+00:00 0:00.000 0.000u 6.7.8 Configure convert[2789]: utility.c/ExpandFilenames/939/Configure
Command line: convert {-debug} {configure} {picture.jpeg} {picture.jpeg}
2013-10-14T15:14:34+00:00 0:00.010 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/coder.xml"
2013-10-14T15:14:34+00:00 0:00.010 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: coder.c/LoadCoderList/693/Configure
Loading coder configuration file "/usr/share/ImageMagick-6.7.8/coder.xml" ...
2013-10-14T15:14:34+00:00 0:00.050 0.030u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/magic.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.7.8/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/etc/ImageMagick/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.090 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/root/.magick/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.090 0.060u 6.7.8 Configure convert[2789]: delegate.c/LoadDelegateList/1228/Configure
Loading delegate configuration file "/usr/share/ImageMagick-6.7.8/delegates.xml" ...
convert: NoDecodeDelegateForThisImageFormat `picture.jpeg' @ error/constitute.c/ReadImage/544.
convert: NoImagesDefined `picture.jpeg' @ error/convert.c/ConvertImageCommand/3044.
答案1
您需要将配置文件(delegates.xml
等)安装到 imagemagick 搜索的目录(/root/.magick/
或/usr/share/doc/ImageMagick-6.7.8/
或/usr/share/ImageMagick-6.7.8/
或/usr/lib/ImageMagick-6.7.8/config/
或/etc/ImageMagick/
。)
如果它应该在另一个目录中搜索,您可以将这些目录中的符号链接到正确的目录,或者需要重新编译 imagemagick。