drlarson — 2011-05-30T12:24:44-04:00 — #1
I am working through Beginning Ruby by Cooper, and have hit a slight snag: I can't figure out if I have RubyGems installed on my MacBook. I just upgraded to SnowLeopard, so it should be in there somewhere, but when I type gem and press Enter, I get the error "Wrong number of arguments (0 for 1). Was wondering if someone could give me a hint on how to determine if RubyGems is installed.
scannon — 2011-06-01T21:08:26-04:00 — #2
You have to supply an argument to the gem command.
For example, gem -v should return the version number and gem -h should pull up the help file which will be very beneficial for you.
7stud — 2011-06-01T22:25:17-04:00 — #3
You can also try:
$ gem environment
which will display a lot of useful information.
drlarson — 2011-06-02T10:13:24-04:00 — #4
Thank you that was very helpful!