Open cimmwolf opened 3 years ago
@cimmwolf Would you try brew reinstall jpeg
before installing jpegoptim-bin
?
Hello, I'm encountering the same issue. brew reinstall jpeg
did not fix the issue for me.
Hello again, thanks to help from the jpegoptim owner, I managed to install jpegoptim-bin
but I had to set flags first:
CPPFLAGS="-I /opt/homebrew/Cellar/jpeg/9d/include" LDFLAGS="-L /opt/homebrew/Cellar/jpeg/9d/lib" npm install --save-dev jpegoptim-bin
This works, but any chance it could be detected and applied automatically?
Hello again, thanks to help from the jpegoptim owner, I managed to install
jpegoptim-bin
but I had to set flags first:CPPFLAGS="-I /opt/homebrew/Cellar/jpeg/9d/include" LDFLAGS="-L /opt/homebrew/Cellar/jpeg/9d/lib" npm install --save-dev jpegoptim-bin
This works, but any chance it could be detected and applied automatically?
This helped me, changing 9d to 9e (probably a newer jpeg version) did the trick. Thanks!
CPPFLAGS="-I /opt/homebrew/Cellar/jpeg/9e/include" LDFLAGS="-L /opt/homebrew/Cellar/jpeg/9e/lib/" yarn add -DT jpegoptim-bin
^ works to get the package installed on my arm64
M1 (and into package.json
), however other developers that come do a yarn install
it fails with the same error.
The work-around I came up with is to run the following in an .*rc
/bootstrap:
export LDFLAGS="-L $(brew --prefix jpeg)/lib/"
export CPPFLAGS="-I $(brew --prefix jpeg)/include"
Note: this accounts for brew version upgrades (9 d/e discrepancy that @ramonfritsch mentions)
Not ideal obviously.
👀
Hello. I have an error when install package. How can I use it on Apple Silicone?