Difference between revisions of "RMagick installation"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center><big><big>'''RMagick is not used anymore in MOR starting from version 0.6'''</big></big></center>
RMagick is responsible for drawing Graphs.
RMagick is responsible for drawing Graphs.


RMagick should be installed with install script. This is just the steps from this script to install it manually if installation by script failed.
RMagick should be installed with install script. This is just the steps from this script to install it manually if installation by script failed.


=Debian=
==Installation==
 
===Debian===


  apt-get -y install imagemagick libmagick9-dev libfreetype6 libfreetype6-dev
  apt-get -y install imagemagick libmagick9-dev libfreetype6 libfreetype6-dev
Line 10: Line 14:
  gem install rmagick-1.13.0.gem
  gem install rmagick-1.13.0.gem


=Centos 4=
===Centos 4===


  yum -y --enablerepo=c4-testing install ImageMagick ImageMagick-devel freetype freetype-devel
  yum -y --enablerepo=c4-testing install ImageMagick ImageMagick-devel freetype freetype-devel
Line 19: Line 23:
  cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default
  cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default


=Centos 5/Fedora=
===Centos 5/Fedora===


  yum -y install ImageMagick ImageMagick-devel freetype freetype-devel
  yum -y install ImageMagick ImageMagick-devel freetype freetype-devel
Line 28: Line 32:
  cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default
  cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default


=Errors=
==Errors==


==Can't find libMagick or one of the dependent libraries==
===Can't find libMagick or one of the dependent libraries===


After   
After   
Line 44: Line 48:
Info: '''http://rmagick.rubyforge.org/install-faq.html#libmagick'''
Info: '''http://rmagick.rubyforge.org/install-faq.html#libmagick'''


Solution (included into install script):
====Solution (included into install script)====


  apt-get install libfreetype6 libfreetype6-dev
  apt-get install libfreetype6 libfreetype6-dev

Latest revision as of 15:18, 16 April 2008

RMagick is not used anymore in MOR starting from version 0.6

RMagick is responsible for drawing Graphs.

RMagick should be installed with install script. This is just the steps from this script to install it manually if installation by script failed.

Installation

Debian

apt-get -y install imagemagick libmagick9-dev libfreetype6 libfreetype6-dev
cd /usr/src
wget http://www.kolmisoft.com/files/packages/rmagick-1.13.0.gem
gem install rmagick-1.13.0.gem

Centos 4

yum -y --enablerepo=c4-testing install ImageMagick ImageMagick-devel freetype freetype-devel
cd /usr/src
wget http://www.kolmisoft.com/files/packages/rmagick-1.13.0.gem
gem install rmagick-1.13.0.gem
#copy missing fonts
cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default

Centos 5/Fedora

yum -y install ImageMagick ImageMagick-devel freetype freetype-devel
cd /usr/src
wget http://www.kolmisoft.com/files/packages/rmagick-1.13.0.gem
gem install rmagick-1.13.0.gem
#copy missing fonts
cp --reply=yes -r /usr/src/mor/centos/TrueType /usr/share/fonts/default

Errors

Can't find libMagick or one of the dependent libraries

After

gem install rmagick-1.13.0.gem 

we get:

configure: error: Can't install RMagick. Can't find libMagick or one of the dependent libraries.
                 Check the config.log file for more detailed information.
ERROR:  Error installing gem rmagick-1.13.0.gem[.gem]: ERROR: Failed to build gem native extension.

Info: http://rmagick.rubyforge.org/install-faq.html#libmagick

Solution (included into install script)

apt-get install libfreetype6 libfreetype6-dev
yum install freetype freetype-devel

After successful installation should be:

Successfully installed rmagick, version 1.13.0