title: Installing Ruby on Mac OS X 10.8.2
body: <p>I have referred to <a href="https://stackoverflow.com/questions/6840719/installing-ruby-on-rails-mac-os-lion">Installing Ruby on Rails - Mac OS Lion</a> and followed <a href="https://stackoverflow.com/questions/6840719/installing-ruby-on-rails-mac-os-lion/8464619#8464619">Alain Beauvois's reply</a> and got pretty much everything up. The only difference is I am using 1.9.3 instead of 1.9.2.</p>
  
  <p>I have created <code>.bash_profile</code> and even made sure that is there by <code>open -e .bash_profile</code> and even added the line as stated by Alain Beauvois.</p>
  
  <p>But what seems to be the problem now is I am getting this error:</p>
  
  <pre><code>Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p374/make.log
  There has been an error while running make. Halting the installation.
  </code></pre>
  
  <p>The referenced log contains this:</p>
  
  <pre><code>[2013-02-02 21:41:52] make
      CC = clang
      LD = ld
      LDSHARED = clang -dynamic -bundle
      CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration  -pipe 
      XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
      CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I/usr/local/rvm/usr/include -I. -I.ext/include/x86_64-darwin12.2.1 -I./include -I.
      DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace  
      SOLIBS = 
  compiling regparse.c
  regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
      return t-&gt;num_entries;
      ~~~~~~ ~~~^~~~~~~~~~~
  1 error generated.
  make: *** [regparse.o] Error 1
  </code></pre>
  
  <p>I even tried </p>
  
  <pre><code>rvm -install ruby-1.9.3-p374
  </code></pre>
  
  <p>but still get the same error. I did get some weird errors before I got to this part but after I reran it with an addition of <code>sudo</code> in front of it, it worked. AFAIK, <code>sudo</code> = doing something with <code>su</code> permissions/privileges, right?</p>