CentOS5ä¸ã§éç¨ãã¦ããMyNETSã®ãµã¤ãã§ä»å¹´ã«å ¥ã£ã¦ãããã°ãã°é«è² è·ãçºçãã¦ã¢ã¯ã»ã¹é害ã«ãªã£ã¦ããã®ã§ãå人ãã¨åå ã調æ»ãä¸å¹¸ä¸ã®å¹¸ãã¨ãããé«è² è·çºçæã«å人ãOSã«ãã°ã¤ã³ãã¦ããããåå ãå¤æãçµæããããã¿ã¼ã³ã®å£ããã¢ãã¡GIFã®ãã¡ã¤ã«ãã¢ãããã¼ããããéã«ImageMagickãå¤æãããã¨ãã¦é«è² è·ç¶æ ãçºçããã¦ããã該å½ãã¡ã¤ã«ãæ½åºããä»ã®CentOS5ã®ãã·ã³ã§æåã§convertãã¦åç¾ç¢ºèªãWindowsãMacOSXï¼Ubuntuã§ã¯è©²å½ãã¡ã¤ã«ã¯convertã§ã¨ã©ã¼è¡¨ç¤ºã§æ£ããå¦çä¸æã«ãªããããCentOSç¨ããã±ã¼ã¸ã®åé¡ã¨æ¨æ¸¬ã
ãæ¢ã«ãã¡ãã®å 容ã¯å½¹ã«ç«ã¡ã¾ãã
ãææ°ã®x86_64çã®è©±é¡ã¯ãã¡ããåç §ãã¦ãã ãã
http://blog.isnext.net/issy/archives/362
â ImageMagickã®ã¢ãããã¼ã
CentOSã¯extraã¨epelããªãã¸ããªè¿½å ããã¦ããããImageMagickã¯
[code]# rpm -q ImageMagick
ImageMagick-6.2.8.0-4.el5_1.1[/code]
ã¨ãææ°ã®6.6.0-10ã«ã¯é ãåã°ãªãã
ãããããªãã®ã§ãææ°çã®tarballãè½ã¨ãã¦ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã
[code]# cd ~/download
# wget http://downloads.sourceforge.net/project/imagemagick/ImageMagick/00-6.6.0/ImageMagick-6.6.0-10.tar.gz?use_mirror=jaist
# cd ImageMagick-6.6.0-10
# ./configure
# make
# make install[/code]
ããããè¦åã¯è¡¨ç¤ºããããã®ã®ä¸å¿ã¤ã³ã¹ãã¼ã«ã§ããã…ã
[code]# convert broken.gif hoge.gif[/code]
ã¨ããã¨å¤ãããé«è² è·çºçã
ããããè¦åãåºã¦ããä¸ã«å¯¾çã«å¿
è¦ãªãã®ãããã¨ãããã¨ã ããã
ï¼4/11追è¨ï¼ã³ã³ãã¤ã«ãã¦å°å
¥ããã¨ããã©ã«ãã§ã¯/usr/local/bin/convertã«ã¤ã³ã¹ãã¼ã«ããããããCentOSã®ããã©ã«ã/usr/bin/convertã¨ç°ãªããããããããã§ã®åä½ç¢ºèªã¯é©åãªç¶æ³ã§ã¯ãªãã£ãï¼
ããããªãã®ã§ãFedoraç¨ã«ç¨æããã¦ããrpmãã¡ã¤ã«ããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ããã
[code]# cd ~/download
# wget http://www.imagemagick.org/download/linux/fedora/i386/ImageMagick-6.6.0-10.i386.rpm
# rpm -Uvh ImageMagick-6.6.0-10.i386.rpm
ã¨ã©ã¼: ä¾åæ§ã®æ¬ å¦:
libHalf.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libIex.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libIlmImf.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libImath.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libcdt.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libdjvulibre.so.21 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libfftw3.so.3 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libgraph.so.4 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libgvc.so.5 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã
libltdl.so.3 㯠ImageMagick-6.6.0-10.i386 ã«å¿
è¦ã¨ããã¦ãã¾ã[/code]
ã¨ãããã¨ã§ä¸è¶³ãã¦ããããã±ã¼ã¸ã®è¿½å ããã¹ã
http://rpm.pbone.net/
ã§å¿
è¦ãªã©ã¤ãã©ãªãå«ãããã±ã¼ã¸ã®å¨ãããæ¢ãã
å¿
è¦ãªã®ã¯
OpenEXR
fftw3
Graphviz
djvulibre
epelã§ãªãã¨ããªããã®ã¯ããããinstall
[code]# yum install openexr fftw3[/code]
graphvizã¯ææ°çãå¿
è¦ãªã®ã§ãæ¬å®¶ã®CentOSç¨ãªãã¸ããªã追å ã
[code]# wget http://www.graphviz.org/graphviz-rhel.repo
# mv graphviz-rhel.repo /etc/yum.repos.d/
# yum install graphviz[/code]
djvulibreã¯dagãªãã¸ããªã«ããã®ã§ãããã追å ã[code]
# vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for CentOS5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=0
gpgcheck=1
# rpm –import http://ftp.riken.jp/Linux/dag/RPM-GPG-KEY.dag.txt
# yum –enablerepo=dag install djvulibre[/code]
ããã§å度ï¼è¿½è¨ã確èªãã¦ãã ããããããã£ã¡ãããã¾ããï¼
[code]# rpm -Uvh ImageMagick-6.6.0-10.i386.rpm[/code]
ä»åº¦ã¯ç¡äºã«å°å
¥ã
[code]# convert broken.gif hoge.gif
convert: negative or zero image size `broken.gif’ @ error/gif.c/ReadGIFImage/1237.
convert: missing an image filename `hoge.gif’ @ error/convert.c/ConvertImageCommand/2941.[/code]
æ£ããã¨ã©ã¼ã«ãªã£ãã®ã§ãããã§OKã
ããCentOSã¸ã®DoSã«ãªããã§å ±åãã¹ããæ©ã¿ä¸ã
…ã¨æã£ãããMyNETSã§åä½ããã¦ã¿ãã¨ãããGIF以å¤ããªãµã¤ãºã§ããªããªã£ã¦ããã¨ãå¤æã
æ£ããåä½ãã¦ããªãã®ã¯ãFedoraç¨ã使ã£ããããªã®ãããã¼ã¸ã§ã³ã¢ããã§ã³ãã³ãå¤æ´ããã£ãã®ãã
追跡調æ»ä¸ã
— 4/11è¿½è¨ —
調æ»ã®çµæãUvhã§ã¤ã³ã¹ãã¼ã«ãã¦ã¯ãããªããã¨ã確èªã
ãããããããå¥OSç¨ã ããã
å
¥ãæ¿ãæã«ãããã¨ã
æ¢åã®ImageMagickãã¢ã³ã¤ã³ã¹ãã¼ã«
[code]# yum remove ImageMagick[/code]
ã¢ã³ã¤ã³ã¹ãã¼ã«ã®ç¢ºèª
[code]# rpm -q ImageMagick
ããã±ã¼ã¸ ImageMagick ã¯ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ããã[/code]
ä¸å¿ä»ã«å
¥ã£ã¦ããªãããæ®ålibããªãã確èª
[code]# updatedb
# localte convert
# locate libMagick[/code]
CentOSã§ã¯convertsã¯/usr/bin/convertã«ãªãã®ã§
ã³ã³ãã¤ã«ã¤ã³ã¹ãã¼ã«çãè¡ã£ã¦ä»ã«ãã£ããæ®ålibå«ãã¦æ¶ãã¦ãã
[code]# rm -f /usr/local/bin/convert
# rm -f /usr/local/lib/libMagick*[/code]
Fedoraç¨ææ°çãæ°è¦ã¤ã³ã¹ãã¼ã«
[code]# rpm -ivh ImageMagick-6.6.0-10.i386.rpm[/code]
念ã®ããåèµ·å
[code]# reboot[/code]
ããã§æ£ããMyNETSã§åä½ãããã¨ã確èªãã¾ããã
CentOSã§ã¢ãã¡GIFæ稿ãåãä»ããWebã¢ããªã§ç»åå¤æã«ImageMadickãå©ç¨ãã¦ããå ´åã«ã¯ãææ°çã¸ã®ã¢ãããã¼ãããªã¹ã¹ã¡ãã¾ãã
no comment untill now