sharp still requires brew for OS X / macOS Sierra

Created on 7 Sep 2017  路  11Comments  路  Source: lovell/sharp

UPDATE: See answer below BUT you can use lipo as an alternative to sharphttps://lipo.io


Myself and 3 others had the issue https://github.com/ladjs/lad/issues/258

Library not loaded: @rpath/libvips-cpp.42.dylib

We are all on Mac OS X or macOS Sierra platforms.

To workaround this, we had to run:

brew install homebrew/science/vips --with-webp --with-graphicsmagick

Then rm -rf node_modules/sharp and yarn install again to recompile.

I think that the installation instructions at http://sharp.dimens.io/en/stable/install need updated.

enhancement

Most helpful comment

This issue cropped up for me after updating to macOS Mojave. I had been using sharp without issues prior to this.

A variation of the first comment worked for me.

brew  install vips --with-webp --with-graphicsmagick
rm -rf node_modules && yarn;

All 11 comments

thanks a lot ! 馃憤 solved my problem

Hello, whilst sharp will work with a manual installation of vips, this step is optional as sharp will download its own pre-built binaries of libvips+dependencies. I believe something else is wrong here and will investigate.

Have commented in https://github.com/ladjs/lad/issues/258 - I suspect this may be a yarn bug (or "performance feature") when upgrading packages.

Part of the work for #186 will be to ensure the pre-built binaries are for the right platform/version. Perhaps the version-checking part of that could be worked on first to detect this kind of problem.

@lovell when I do this:

brew remove vips
rm -rf node_modules
npm cache clear
npm install

I have the segmentation fault on my image (#937)

Wether I'm using yarn or npm

@goldo Thanks, I don't believe this problem and #937 are related, so have re-opened the latter for separate tracking.

186 is now in progress and will provide the version-checking logic I mentioned in https://github.com/lovell/sharp/issues/939#issuecomment-328043901 so I'll close this - please subscribe to #186 for updates.

This issue cropped up for me after updating to macOS Mojave. I had been using sharp without issues prior to this.

A variation of the first comment worked for me.

brew  install vips --with-webp --with-graphicsmagick
rm -rf node_modules && yarn;

Neat, I just use my service Lipo.io entirely now, 100% uptime! Still have to figure out how to handle versioning and get a status page up or something + SLA.

@niftylettuce It works! thank you! 馃憤

Myself and 3 others had the issue ladjs/lad#258

Library not loaded: @rpath/libvips-cpp.42.dylib

We are all on Mac OS X or macOS Sierra platforms.

To workaround this, we had to run:

brew install homebrew/science/vips --with-webp --with-graphicsmagick

Then rm -rf node_modules/sharp and yarn install again to recompile.

I think that the installation instructions at http://sharp.dimens.io/en/stable/install need updated.

thank you, you save my day.

No problem! I did make https://lipo.io as an alternative too, feel free to use it.

Was this page helpful?
0 / 5 - 0 ratings