èªå®
PCã®CentOSï¼VMï¼ã«Redmine1.3をインストールãã¦ãã®ã§ãã
Rmagicå
¥ããã¨ããã§ã¡ãã£ã¨ã ãããã£ãã®ã§ã¡ã¢ãã¦ããã
æåããã
ã¾ãæ®éã«ã¤ã³ã¹ãã¼ã«ããã以ä¸ã®ãããªã¨ã©ã¼ãåºãã
# gem install rmagick --no-rdoc --no-ri checking for ImageMagick version >= 6.3.5... no
ImageMagickã¯yumã§å ¥ããã®ã ãããã¼ã¸ã§ã³ã¯6.2.8ãããã
# yum list installed | grep ImageMagick ImageMagick.x86_64 6.2.8.0-4.el5_5.3 installed
RMagickãã¦ã³ã°ã¬ã¼ã
ImageMagickãå
¥ãç´ãã»ãã大å¤ãããªã®ã§ã
RMagickã®ãã¦ã³ã°ã¬ã¼ãã試ãã¦ã¿ãã¨ã1.15.17ãªãéã£ãã
gem install rmagick -v=1.15.17 --no-rdoc --no-ri
msttcorefontsã®ã¤ã³ã¹ãã¼ã«
ãããä»åº¦ã¯ä»¥ä¸ã®ã¨ã©ã¼ã«ééã
/usr/local/rvm/gems/ruby-1.8.7-p352/gems/rmagick-1.15.17/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
ããã£ã¦ã¿ãã¨ãmsttcorefontãrpmã§å
¥ãããã¨ãæ¸ãã¦ããã®ã§ãã
ãã®ããã±ã¼ã¸ããªããªãè¦ã¤ãããªãã¦ã²ã¨ãããã
çµå±ã¯æµ·å¤ã®ãµã¤ããåèã«ãã¦ä»¥ä¸ã®ã³ãã³ãå®è¡ã
yum install rpm-build cabextract --enablerepo=epel wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec rpmbuild -ba msttcorefonts-2.0-1.spec rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
ããã§OKãã¨æãããã¾ã åãã¨ã©ã¼ãåºãã
確èªãã¦ã¿ãã¨è¦ã¦ãããã¹ãå¾®å¦ã«éãæ§åã
# find /usr -name 'verdana.ttf' /usr/src/redhat/BUILD/msttcorefonts/fonts/verdana.ttf /usr/share/fonts/msttcorefonts/verdana.ttf
ããã¯ã·ã³ããªãã¯ãªã³ã¯ãå¼µã£ã¦çµäºã
ln -s /usr/share/fonts/msttcorefonts /usr/share/fonts/default/TrueType
ã¤ã³ã¹ãã¼ã«å®äº
ããã¾ã§ã®å¯¾å¿ã§ã¤ã³ã¹ãã¼ã«å®äºã
# gem install rmagick -v=1.15.17 --no-rdoc --no-ri Building native extensions. This could take a while... Successfully installed rmagick-1.15.17 1 gem installed