Tuesday, December 29, 2009

Installing RMagic in fedora

To install RMagic gem for graphic operations in fedora os follow the below instructions
open terminal by Application -> System Tools -> Terminal
login as root by giving command su
#su
#password: enter root password
goto ruby path
#cd usr/lib/ruby
issue the below command
[root@localhost ruby]
gem install rmagick --no-rdoc --no-ri
you should see the below message if successfully installed RMagic gem
Building native extensions. This could take a while...
Successfully installed rmagick-2.12.2
1 gem installed
To see the gem in your local gems list issue the below command
[root@localhost ruby]# gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.4)
-------------------
-------------------
Rmagic(2.12.2)
------------------
etc.,

For Windows users
c:\> gem install rmagick-2.0.0-x86-mswin32.gem

Bydefault gem install will look for the particular gem name in rubyforge site.
You can also mention the path for git repository if the gem is available in github.