title: Trouble when running autogen.sh
body: <p>I have downloaded R tree from <a href="http://libspatialindex.github.com/" rel="noreferrer">http://libspatialindex.github.com/</a></p>
  
  <p>Since on running ./autogen.sh I was getting file/folder not found, therefore I downloaded the file autogen.sh from the github repository given below:</p>
  
  <p><a href="https://raw.github.com/libspatialindex/libspatialindex/9a5a2f4d83c3ec7be4dbf2c8a86341703d837185/autogen.sh" rel="noreferrer">https://raw.github.com/libspatialindex/libspatialindex/9a5a2f4d83c3ec7be4dbf2c8a86341703d837185/autogen.sh</a></p>
  
  <p>Now when I run <strong>./autogen.sh</strong> I am getting "Permission denied"
  And if I run <strong>sh ./autogen.sh</strong> I am getting:</p>
  
  <pre><code>glibtoolize or libtoolize not found. Giving up!
  </code></pre>
  
  <p>Please suggest what should I do now</p>
  
  <p><strong>EDIT:Also I want to use libspatialindex inside my C++ project. I am using netbeans. I mean I want to use the functions inside libspatialindex inside my netbeans project. How should I use the same. Right now I have run the config and make command in a separate directory. I am not getting as to how to use them inside my project.</strong> </p>