title: Upgrading to Ruby 2.1.3 on Mac OSx 10.9.5
body: <p>Today I upgraded to Ruby 2.1.3 from 2.0.0 on Mac OSx 10.9.5. It turned out to be more difficult than initially expected. And since I wasted a hell lot of time I thought I share my experiences plus solution in case someone else hits the problem as well.</p>
  
  <p>I have xcode + developer tools installed. I updated xcode this week as well - not sure if that was the reason why things suddenly didn't work. However, here are the facts: </p>
  
  <pre><code>$ gcc -v
  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
  Target: x86_64-apple-darwin13.4.0
  Thread model: posix
  
  $ rvm -v
  rvm 1.25.32 (stable) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]
  
  $ brew -v
  Homebrew 0.9.5
  
  $ git version
  git version 1.9.3 (Apple Git-50)
  </code></pre>
  
  <p>Getting the latest version of Ruby and using it as default: </p>
  
  <pre><code>$ rvm install ruby
  $ rvm --default use ruby-2.1.3
  </code></pre>
  
  <p><strong>Now the issue is that if I tried to check ruby version I got the following:</strong> </p>
  
  <pre><code>$ rvm --default use ruby-2.1.3
  Using /Users/georg/.rvm/gems/ruby-2.1.3
  dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
    Referenced from: /Users/georg/.rvm/rubies/ruby-2.1.3/bin/ruby
    Reason: image not found
  </code></pre>
  
  <p>In fact nothing was really working - I tried to reload RVM, reinstall, re-install and upgrade homebrew, etc. </p>
  
  <pre><code>$ brew update &amp;&amp; brew upgrade
  
  $ rvm reload
  </code></pre>
  
  <p>Reinstalled ruby</p>
  
  <pre><code>$ rvm install ruby-2.1.3
  Already installed ruby-2.1.3.
  To reinstall use:
  
      rvm reinstall ruby-2.1.3
  </code></pre>
  
  <p>And many other solutions - however, it all did not do the trick. </p>
  
  <p>So I checked if I have /usr/local/lib/libcloog-isl.4.dylib</p>
  
  <pre><code>$ ls -la /usr/local/lib/libcloog-isl.4.dylib 
  </code></pre>
  
  <p>Which didn't give anything back ... </p>