Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sharp still requires brew for OS X / macOS Sierra #939

Closed
niftylettuce opened this issue Sep 7, 2017 · 11 comments
Closed

sharp still requires brew for OS X / macOS Sierra #939

niftylettuce opened this issue Sep 7, 2017 · 11 comments

Comments

@niftylettuce
Copy link

niftylettuce commented Sep 7, 2017

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


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 need updated.

@goldo
Copy link

goldo commented Sep 8, 2017

thanks a lot ! 👍 solved my problem

@lovell
Copy link
Owner

lovell commented Sep 8, 2017

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.

@lovell lovell added the triage label Sep 8, 2017
@lovell
Copy link
Owner

lovell commented Sep 8, 2017

Have commented in ladjs/lad#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 lovell added enhancement and removed triage labels Sep 8, 2017
@goldo
Copy link

goldo commented Sep 8, 2017

@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

@lovell
Copy link
Owner

lovell commented Sep 8, 2017

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

@lovell
Copy link
Owner

lovell commented Jan 29, 2018

#186 is now in progress and will provide the version-checking logic I mentioned in #939 (comment) so I'll close this - please subscribe to #186 for updates.

@lovell lovell closed this as completed Jan 29, 2018
@ifiokjr
Copy link

ifiokjr commented Sep 27, 2018

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;

@niftylettuce
Copy link
Author

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.

@shakedlokits
Copy link

@niftylettuce It works! thank you! 👍

@lisasu-g
Copy link

lisasu-g commented Dec 27, 2019

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 need updated.

thank you, you save my day.

@niftylettuce
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants