Ruby Gems Help

N

Nick Sch

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.
 
D

Dan Zwell

Nick said:
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
 
N

Nick Sch

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.
 
D

Dan Zwell

Nick said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ruby 1.9 not finding gems 2
Gems LoadError in Linux 8
RubyGems setup 3
Ruby - gems not 2
Local gems not loaded in ruby > 1.9 without custom_require 0
Ruby Newbie... 3
Rubygems Weirdness 2
experimenting with gems 2

Members online

Forum statistics

Threads
474,264
Messages
2,571,317
Members
48,003
Latest member
coldDuece

Latest Threads

Top