When I doing bundle install of my project with Pashion
in my gemfile.
I encountered troubleshooting:
ld: library not found for -ljpeg
.
Confirmed things are I have installed jpeg, libjpeg, libpng
by following commands.
brew install jpeg
and brew install libjpeg
brew install libpng
gem install phashion -v '1.2.0'
will get the same error.
Machine: MacBook Air (M1, 2020)
Os: macOS BigSur 11.2 (20D64)
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: arm64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Related:
I use homebrew, which has full support on NEW Mac(M1), to install pacakges.
I use rvm(1.29.12) to manage ruby(2.6.3 as default).
Most like the problem here https://github.com/westonplatter/phashion/issues/19