title: Lion OSX: How to install libfreetype.6.dylib?
body: <p>I am trying to install a ruby gem, but the installation process is stopped, because:</p>
  
  <pre><code>ld: file not found: /usr/local/lib/libfreetype.6.dylib for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>How can I install this library? I checked the <code>/usr/local/lib/</code> and the library is missing there.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I ran <strong>locate libfreetype.6.dylib</strong> and got:</p>
  
  <pre><code>/Applications/MAMP/Library/lib/libfreetype.6.dylib
  /Applications/VLC.app/Contents/MacOS/lib/libfreetype.6.dylib
  /Applications/XAMPP/xamppfiles/lib/libfreetype.6.dylib
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libfreetype.6.dylib
  /Applications/calibre.app/Contents/Frameworks/libfreetype.6.dylib
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF
  /Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources
  /Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF
  /Users/v/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib
  /opt/X11/lib/libfreetype.6.dylib
  /usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib
  </code></pre>
  
  <p>But why system doen't find the library?</p>