[Rubygems-developers] help rmagick error on gem install

anmol anmolanand at gmail.com
Tue Dec 30 22:50:02 EST 2008


Thanks for repling :)

I have installed ImageMagick libraries but I am not able to install
new gems now. It gives an error.

Today when I tried Rails it gave me the message below

anmol at anmol-laptop:~/skid1/skid$ ruby script/server
Missing the Rails 2.1.0 gem. Please `gem install -v=2.1.0 rails`,
update your RAILS_GEM_VERSION setting in config/environment.rb for the
Rails version you do have installed, or comment out RAILS_GEM_VERSION
to use the latest version installed.

and when I tried the 'gem' command, the output is as follows:

anmol at anmol-laptop:~/skid1/skid$ gem install -v=2.1.0 rails
/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


when I tried 'gem environment' and 'sudo gem install rmagick --debug'
it gives the same error.

anmol at anmol-laptop:~$ gem environment
/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.

On Dec 29, 9:39 pm, "Luis Lavena" <luislav... at gmail.com> wrote:
> On Mon, Dec 29, 2008 at 2:39 PM, Luis Lavena <luislav... at gmail.com> wrote:
> > On Mon, Dec 29, 2008 at 1:24 PM, Anmol Anand <anmolan... at gmail.com> wrote:
> >> I Had sent this mail to "rubygems-develop... at rubyforge.org" without using
> >> 'help' in subject and I apologise for my mistake . Please pardon me, below I
> >> describe my problem.
>
> >> 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::
>
> >> anmol at anmol-laptop:~$ sudo gem install rmagick
>
> >> /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.
>
> > Can you provide more information about your environment?
>
> > $ gem environment
>
> > Please also run the same command with debug information:
>
> > sudo gem install rmagick --debug
>
> Also note that for install RMagick you need several headers and
> libraries installed in your system.
>
> --
> Luis Lavena
> AREA 17
> -
> Perfection in design is achieved not when there is nothing more to add,
> but rather when there is nothing more to take away.
> Antoine de Saint-Exupéry
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-develop... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rubygems-developers


More information about the Rubygems-developers mailing list