小编Ell*_*Cui的帖子

安装 Gem phashion 时出错:ld: 找不到 -ljpeg 的库

Pashion当我在 gemfile 中捆绑安装我的项目时。

我遇到的故障排除: ld: library not found for -ljpeg

已确认我已jpeg, libjpeg, libpng通过以下命令安装了这些东西。
brew install jpegbrew 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)

ruby rubygems apple-m1

3
推荐指数
1
解决办法
1159
查看次数

标签 统计

apple-m1 ×1

ruby ×1

rubygems ×1