当我在我的Gemfile中使用
确认安装了以下几个东西:
Pashion
并执行bundle install时,出现了以下故障: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 manage ruby(2.6.3 as default).
这里最有可能的问题类似于https://github.com/westonplatter/phashion/issues/19
phashion
gem在gemfile中定义时,该怎么做呢?当我运行Bundler时,环境变量似乎不起作用。 - ntocamposCPLUS_INCLUDE_PATH
时遇到了一些问题。它似乎无法正常工作,即使我将它放入我的 .zshrc 文件并进行了源化,我仍然会收到 “致命错误:找不到‘jpeglib.h’文件”的提示。还有别的人遇到这个问题吗? - Aurel Drejta