ruby-on-rails - 无法在arm Mac上安装ffi
问题描述
我在 Apple Silicon Mac 上安装 ffi,使用 rosetta2
brew 适用于rosetta2。因此我设置了这个。
LDFLAGS="-L/usr/local/opt/libffi/lib"
PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
checking for ffi.h... yes
checking for ffi_call() in -lffi... yes
checking for ffi_closure_alloc()... yes
checking for shlwapi.h... no
checking for rb_thread_call_without_gvl()... no
Ruby C-API function `rb_thread_call_without_gvl` is missing
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
似乎找到了 ffi.h,但缺少 shlwapi.h 和 rb_thread_call_without_gvl。有人知道它如何找到 shlwapi.h 吗?
解决方案
推荐阅读
- node.js - 使用 qs 库解析查询字符串未正确解析嵌套对象
- python - 多处理循环的结果
- ios - 将单元格添加到集合视图。迅速
- android - Xamarin 后台断开信号器
- flutter - 无法将 SvgPicture 分配给 ImageProvider
- java - Spring Boot:更改实体类中@Table 的属性
- html - < 和 > 在 Google 脚本内的 HTML 代码中更改为 < 和 >
- android - 将 sqlite 文件保存到 react-native-sqlite-storage 中的手机存储
- python - 合并两个数据框而不创建后缀
- python - 使用 Scrapy 对网站进行分页和获取价格