views:

185

answers:

1

These are the two errors I am getting. I am on OS X. Honestly, don't know if I installed via gem or not - if that matters.

WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
  /usr/bin aren't both writable.
WARNING:  You don't have /Users/M/.gem/ruby/1.8/bin in your PATH,
  gem executables will not run.
+1  A: 

The default Ruby installation shipped on Mac OS X is owned by the system administrator, so you need root privs to install Gems.

$ sudo gem install MYGEM

The second warning is because, without root privileges, Ruby tries to install the Gem in your user directory. However, unless you also installed Ruby in your user directory, you might encounter some problem later.

Simone Carletti