title: Mac installing libraries using the terminal
body: <p>I have researched this and found answers on SO on this topic yet remain confused.</p>
  
  <p>Trying to get started with Git. I'm new to shell scripting too so hopefully after this I'll be more familiar with it.</p>
  
  <p>I'm reading this page about how to get up and running with Git: <a href="http://git-scm.com/book/en/Getting-Started-Installing-Git" rel="nofollow">http://git-scm.com/book/en/Getting-Started-Installing-Git</a></p>
  
  <p>I created a directory on my desktop called "git" and navigated to it in the terminal. With my level of experience in shell scripting this was a victory. Then, following a blog post on how to download fromt he terminal ran this command:</p>
  
  <pre><code>curl -O http://git-scm.com/download
  </code></pre>
  
  <p>That worked, or at least a new file was added to the "git" directory that I created.</p>
  
  <p>Reading down the instructions one is told that "To install Git, you need to have the following libraries that Git depends on: curl, zlib, openssl, expat, and libiconv"</p>
  
  <p>OK. Um. How? I did read some blog posts and SO answers on how to do this but failed. The first one for example - type zlib and hit enter - command not found? How do I either check if it's already installed or how do I install it? What about the others?</p>
  
  <p>I tried following this blog post: <a href="http://www.neuraladvance.com/using-open-source-libraries-on-mac-os-x.html" rel="nofollow">http://www.neuraladvance.com/using-open-source-libraries-on-mac-os-x.html</a></p>
  
  <p>I typed:</p>
  
  <pre><code>./configure
  make
  sudo make install
  </code></pre>
  
  <p>Wasn't even sure what to expect. The first two commands said not found the last one asked me for a password.</p>
  
  <p>I then tried <code>./configure --help</code></p>
  
  <p>Was then told "No such file or directory"</p>
  
  <p>Needless to say I don't know what to do next. How do I install the libraries on a Mac using the terminal? curl, zlib, openssl, expat, and libiconv</p>