Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Cannot find libwebp.6.dylib

Darren Mackintosh edited this page Apr 3, 2017 · 2 revisions

Some users may come across an error where PhantomJS 2.5 can't find libwebp.6.dylib on OSx (not sure if it affects Linux); Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib

There are three different ways to solve this;

  1. brew install webp If you're lucky this will fix the problem .....or.....
  2. Visit https://developers.google.com/speed/webp/download Go to the downloads repository Download the libwebp-0.5.2 releavant to your build. You are downloading 0.5.2 because, ironically, this archive contains the libwebp.6.dylib you need to make Phantom work Follow the instructions to build, compile and install libwebp.6.dylib .....or.....
  3. Add a symlink for libwebp.6.dylib to reference libwebp.7.dylib Close and re-open, or open another terminal window Browse to your webp lib directory cd /usr/local/opt/webp/lib Look at the directory for the library file ls If you see libwebp.7.dylib, add the symlink ln -s libwebp.7.dylib libwebp.6.dylib
Clone this wiki locally