Installation Error?

Hi, When I tried to install gems, I got the following error: ERROR: While executing gem ...<Errno::EACCES> Permission denied - ruby/1.9.1/drb

and when I tried gem install rails, I got

ERROR: Error installing rails: rails requires activesupport <=2.2.3, runtime>

what am I doing wrong?

Thanks!

What version of ruby are you running and what OS are you on?

B.

I'm using windows XP, and ruby is version 1.9.2

You need to be an administrator on your Windows machine to install a gem. Are you an admin on your Windows system?

Can you reproduce the entire message of the error?

Also, please include the output of "gem env" command so we can see the directories were it tries to place files.

If you installed Ruby using administrative privileges on Windows, you need to open a command prompt with the same level of privileges for gems to install properly.

When you say I must be an administrator - how do I check if I'm an administrator or have the privileges to install gem?

Thanks!

Start->Control Panel->User Accounts->click Advanced Tab->Advanced->Select Groups->double click Administartors. You should see your name in that list.

B.

install ubuntu and follow this: http://cicolin.blogspot.com/2010/10/how-to-install-ruby-rails-and.html :wink:

When I do gem env, I get

RubyGems Environment: -RUBYGEMS VERSION: 1.5.2 - RUBY VERSION: 1.9.2 <2011-02-18 patchlevel 180>> [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby192/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby192/lib/ruby/gems/1.9.1 - H:/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org