Ruby Gems Help

Hello again,
I've run into trouble installing RubyGems. I've read the readme and
several other tutorials and they tell me to run "ruby setup.rb".
Somehow this confuses me and for some reason I think it must be the
easiest thing in the world... I'm on a Mac OS X. I downloaded the
newest .zip version of RubyGems. I've opened setup.rb. I've ran "ruby
setup.rb in terminal. Is it supposed to be in a certain location? Is
therer another download for Macs? What am I doing wrong? Thanks.

···

--
Posted via http://www.ruby-forum.com/.

Nick Sch wrote:

Hello again,
I've run into trouble installing RubyGems. I've read the readme and
several other tutorials and they tell me to run "ruby setup.rb".
Somehow this confuses me and for some reason I think it must be the
easiest thing in the world... I'm on a Mac OS X. I downloaded the
newest .zip version of RubyGems. I've opened setup.rb. I've ran "ruby
setup.rb in terminal. Is it supposed to be in a certain location? Is
therer another download for Macs? What am I doing wrong? Thanks.

Hi,

I haven't installed RubyGems by this method, but you will need to extract the .zip file to a place on your harddrive. Then you will need to open the terminal and navigate to that place. Useful tools for finding something in terminal:
"pwd" tells you where you are
"cd <directory>" changes directory
"ls" lists contents of the current directory.

So navigate to where you extracted the archive. You should be able to see "setup.rb" by typing "ls setup.rb". Then, run "ruby setup.rb".

Let us know how that goes, though if something complex goes wrong, I fear /I/ won't be able to help, as I don't use a mac. Certainly somebody will be able to help you, though.

Dan

Sorry if double posting is breaking a rule here, but I think I found how
to do it. Then I ran into another problem. It says permission denied.

···

--
Posted via http://www.ruby-forum.com/.

Nick Sch wrote:

Sorry if double posting is breaking a rule here, but I think I found how to do it. Then I ran into another problem. It says permission denied.

Prefix a command with "sudo" to elevate your permissions before the command is run. The system may prompt you for your password. That is, run "sudo ruby setup.rb". And I don't think double posting is ever a problem, if someone has something important to add to the last email they sent. By the way, this is a mailing list, and ruby-forum is just a frontend.

Regards,
Dan