Forum: Ruby on Rails Installing RubyGems Problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
54b55c47f36e7b7153a404a70d97c59e?d=identicon&s=25 Bilson (Guest)
on 2007-01-19 16:29
(Received via mailing list)
I am sure that this is quite a stupid question, but I have little to no
experience with the command line.  I am running Windows XP Pro and
attempting to install RoR.  I am at the step where RubyGems is to be
installed.  Everything I read says just run setup.rb at the command
line.  I do that and all that happens is that the file setup.rb opens
up in my code editor.  I am guessing that is not what is supposed to
happen.  What obvious step am I missing here?

My hope is to eventually run this on my WAMP server, but I need to get
this first.

Thanks in advance.
45959eda56edd9f2db9ebd2fabb1e582?d=identicon&s=25 jrcahoon (Guest)
on 2007-01-19 16:31
(Received via mailing list)
It sounds like Windows is seeing the .rb file extension and assuming
you want to open it with a program associated through the registry.

1. Can you open a command line and run ruby commands?  Does `ruby -e
"puts Hello World!"` print "Hello World" to STDOUT?  If this isn't
working make sure your path environment variable is set to the location
of ruby.

2. Once you know you can run ruby from the command line, running `ruby
setup.rb` in the directory where it exists.

Good luck,

54b55c47f36e7b7153a404a70d97c59e?d=identicon&s=25 Bilson (Guest)
on 2007-01-19 16:31
(Received via mailing list)
Thanks Jake.  Yep, that was the problem.  Seems to be working just fine
now and even with WAMP.  I'm just starting out but hoping for a fairly
easy transition from PHP.
This topic is locked and can not be replied to.