SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Do I have RubyGems installed but just can't find it?

    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.

    Thank you!
    Doug

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2003
    Location
    Akron, OH, USA
    Posts
    106
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also try:

    $ gem environment

    which will display a lot of useful information.

  4. #4
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you that was very helpful!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •