On Wed, Dec 31, 2008 at 1:50 AM, anmol <[email protected]> wrote:
> 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
>
> an...@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:
>
> an...@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.
>
> an...@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.
>

Woot, looks like you broke your environment... bad ImageMagick?

Anyhow, please manually install rubygems on top of that:

http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/

Try the manual install steps (in the first section of the post).
(skip the "set RUBYOPT" since is mainly for Windows users, all the
other steps apply).

Then let's see what gem env and others give you.

-- 
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
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to