title: tesseract install mac os
body: <p>I am trying to install tesseract on my mac using homeBrew. When I try installing, everything seems to be good but I get the following error/message:</p>
  
  <pre><code>Warning: Could not link leptonica. Unlinking...
  Error: The `brew link` step did not complete successfully
  The formula built, but is not symlinked into /usr/local
  You can try again using `brew link leptonica'
  </code></pre>
  
  <p>When I try running a tesseract function, I get the following error:</p>
  
  <pre><code>Tesseract Open Source OCR Engine v3.02.02 with Leptonica
  Error in pixReadStreamPng: function not present
  Error in pixReadStream: png: no pix returned
  Error in pixRead: pix not read
  Unsupported image type.
  </code></pre>
  
  <p>I have image magick installed and the command I used to install tesseract was: </p>
  
  <pre><code>brew install tesseract
  </code></pre>
  
  <p>Can anyone please tell me what I can do to get tesseract working? Thank you!</p>
  
  <p><strong>EDIT</strong>
  When I run brew link leptonica, I get the following error:</p>
  
  <pre><code>Could not symlink file: /usr/local/Cellar/leptonica/1.69/bin/yuvtest
  Target /usr/local/bin/yuvtest already exists. You may need to delete it.
  </code></pre>