Pashion当我在 gemfile 中捆绑安装我的项目时。
我遇到的故障排除:
ld: library not found for -ljpeg。
已确认我已jpeg, libjpeg, libpng通过以下命令安装了这些东西。
brew install jpeg和brew install libjpeg
brew install libpng
gem install phashion -v '1.2.0'会得到同样的错误。
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 …Run Code Online (Sandbox Code Playgroud)