Skip to content

Instantly share code, notes, and snippets.

@darul75
Last active August 23, 2017 08:08
Show Gist options
  • Save darul75/9125097 to your computer and use it in GitHub Desktop.
Save darul75/9125097 to your computer and use it in GitHub Desktop.
Max OS fatal error: 'jpeglib.h' file not found
Use Brew
> brew install libjpeg
find /usr | grep "libjpeg"
find /opt | grep "libjpeg"
Here what I have done
cd /usr/local/include
sudo rm jpeglib.h
cd /usr/local/lib
sudo rm libjpeg*.*
http://brantsteen.com/blog/python-27-libjpeg-pil-on-osx/
Additionally you can use brew switch if you're using brew on OS X to downgrade versions (and brew versions v8 to see what versions are available)
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=24943
http://www.yireo.com/blog/1559-jpegoptim-wrong-jpeg-library-version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment