Install gems problem in windows

Hi,
I have installed ruby and trying to set rails environment.

ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

gem environment
RubyGems Environment:

  • VERSION: 0.9.4 (0.9.4)
  • INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
  • GEM PATH:
    • C:/Ruby/lib/ruby/gems/1.8
  • REMOTE SOURCES:

gem install rails --include-dependencies
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find rails (> 0) in any repository

I tried downloading the gem locally , still the same error

gem update --system
Updating RubyGems…
Attempting remote update of rubygems-update
ERROR: While executing gem … (Gem::InstallError)
rubygems-update requires builder >= 0

I could’nt install any gems.

gem list
*** LOCAL GEMS ***

fxri (0.3.6)
fxruby (1.6.12)
hpricot (0.6)
log4r (1.0.5)
rake (0.7.3)
sources (0.0.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)

I would like to know the procedure for setting up the rails
environment.

uninstall rails then ruby restart system then make all processes in
better
mannered way .

On Fri, Jan 29, 2010 at 11:25 AM, senling [email protected] wrote:

  • GEM PATH:

win32-clipboard (0.4.3)
I would like to know the procedure for setting up the rails
http://groups.google.com/group/rubyonrails-talk?hl=en.


Regards:
Rajeev sharma
+919813270707

There is no rails gem installed in my system.

Thanks
senling

How did you install RubyGems? That version number is pretty old, the
current
being 1.3.5.

I take it from your ‘I couldn’t install any gems’ comment, that you
tried to
install bundler and it failed?

If that’s the case, I would uninstall whatever you did to get a .9
version
of RubyGems, and then follow the directions here:
http://docs.rubygems.org/read/chapter/3

-Ethan

I believe in windows it’s
gem update --system

not sure if this is required in *nix, but I’ve always had to add the
– in windows.

Hope this helps…

install ruby
gem update
gem update system
ruby -v
gem install rails
rails -v
gem install mysql
if needed…

On Fri, Jan 29, 2010 at 12:00 PM, Ethan Gunderson
[email protected]wrote:

-Ethan

uninstall rails then ruby restart system then make all processes in

ruby -v

rubygems-update requires builder >= 0
rake (0.7.3)
windows-api (0.2.0)
[email protected]
Rajeev sharma


Regards:
Rajeev sharma
+919813270707

Bob wrote:

I believe in windows it’s
gem update --system

not sure if this is required in *nix, but I’ve always had to add the
– in windows.

Hope this helps…

Hi, I have some problems with that in Windows xp to, but after looking
around in the web the simpliest solution is:

  1. Download Ruby Gem files from RubyForge =>
    http://rubyforge.org/frs/?group_id=126
  2. Unzip de File, open the command Line and go to the directory in which
    you unzip the files.
  3. Execute the setup.rb file, typing “ruby setup.rb”

and that’s it! you have ruby gems intalled and can intall rails simply
typing gem install rails

hope this can help you (sorry for the bad english)

Saludos desde Medellin-Colombia

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs