gem安装错误:函数指针类型不兼容

gem安装错误:函数指针类型不兼容

💡 原文英文,约100词,阅读约需1分钟。
📝

内容提要

我最近购买了第二台MacBook Pro M2,并需要在上面设置Rails项目。常见的错误是“函数指针类型不兼容”,可以通过添加--with-cflags=-Wno-error=incompatible-function-pointer-types来解决。

🎯

关键要点

  • 最近购买了第二台MacBook Pro M2。
  • 需要在Mac上设置Rails项目。
  • 常见错误是'函数指针类型不兼容'。
  • 可以通过添加--with-cflags=-Wno-error=incompatible-function-pointer-types来解决该错误。
  • 示例命令为:gem install msgpack -v '1.4.2' -- --with-cflags=-Wno-error=incompatible-function-pointer-types。
  • 记录此信息以备将来遇到类似问题时参考。
➡️

继续阅读