# Rmagick error on install

**URL:** <https://www.ruby-forum.com/t/rmagick-error-on-install/156529>\
**Category:** Ruby\
**Created:** [December 29, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/rmagick-error-on-install/156529 "2008-12-29T16:08:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldofanmol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3ab097/32.png) [@worldofanmol](https://www.ruby-forum.com/u/worldofanmol)\
**Post date:** [December 29, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/rmagick-error-on-install/156529/1 "2008-12-29T16:08:51Z")

</div>

i have been trying to install rmagick but have been unsuccessful.People  
on Rmagick forum told me that the error is a ruby gem error, please help  
.

When I typed the command “sudo gem install Rmagick” , I got the  
following error::

/usr/local/lib/site\_ruby/1.8/rubygems.rb:274:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in`new’  
from /usr/local/lib/site\_ruby/1.8/rubygems.rb:274:in `configuration' from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in`path’  
from /usr/local/lib/site\_ruby/1.8/rubygems/source\_index.rb:66:in  
`installed_spec_directories' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in`from\_installed\_gems’  
from /usr/local/lib/site\_ruby/1.8/rubygems.rb:736:in `source_index' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in`init\_gemspecs’  
from /usr/local/lib/site\_ruby/1.8/rubygems/gem\_path\_searcher.rb:21:in  
`initialize' ... 6 levels... from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in`require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/gem\_runner.rb:8  
from /usr/bin/gem:10:in `require’  
from /usr/bin/gem:10

Please help!!!  
Thanks in advance.
