title: How to fix 'Makefile:257: recipe for target 'rugged.so' failed' (rugged)
body: <p>I'm trying to install <code>pronto</code> gem and one of its dependency (rugged) is failing to build.</p>
  
  <p>So, trying to run <code>gem install rugged</code> gives me such output <a href="https://pastebin.com/m6v2RgQt" rel="nofollow noreferrer">https://pastebin.com/m6v2RgQt</a></p>
  
  <p>I've checked that I have <code>cmake</code> installed and other optional dependencies listed here <a href="https://github.com/libgit2/libgit2#optional-dependencies" rel="nofollow noreferrer">https://github.com/libgit2/libgit2#optional-dependencies</a>.</p>
  
  <p>My guesses are</p>
  
  <p>1) I'm using <code>rbenv</code> and this somehow can mess with Ruby path</p>
  
  <p>2) My machine configuration</p>
  
  <p>Do you have any thoughts on how to fix this issue? </p>