努力让 Rails 服务器在 Mac 上运行
设置 Rails 服务器。运行以下命令时:
bundle exec rails server
我收到以下错误:
dlopen(/Users/ben/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle, 0x0009): symbol not found in flat namespace '_ffi_prep_closure' - /Users/ben/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle (LoadError)
任何帮助将不胜感激。 环境:Mac OS X 12.3,CPU:M1 MAX。
Setting up a rails server. When running the following command:
bundle exec rails server
I get the following error:
dlopen(/Users/ben/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle, 0x0009): symbol not found in flat namespace '_ffi_prep_closure' - /Users/ben/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle (LoadError)
Any help would be greatly appreciated.
Environment: Mac OS X 12.3, CPU: M1 MAX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试运行以下
积分 - https://github.com/ffi/ffi /issues/687#issuecomment-468005152
OR
你可以尝试通过
gem install ffi 重新安装 gem -- --disable-system-libffi
希望这些解决方案之一能解决您的问题,
谢谢。
Can You try running following
credits - https://github.com/ffi/ffi/issues/687#issuecomment-468005152
OR
you can try reinstalling gem by
gem install ffi -- --disable-system-libffi
Hope one of these solutions resolve your issue
Thanks.