符号在平面名称空间中找不到在Mac M1中

发布于 2025-02-01 02:26:01 字数 769 浏览 6 评论 0原文

做任何想法时,我有问题

bundle exec rails db:migrate

当我对如何修复它 ? 我不知道为什么找不到_mysql_affected_rows。 帮助您将不胜感激。

rails aborted!
LoadError: dlopen(/Users/myname/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.4/lib/mysql2/mysql2.bundle, 0x0009): symbol not found in flat namespace '_mysql_affected_rows' - /Users/myname/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.4/lib/mysql2/mysql2.bundle
/Users/myname/Desktop/github/company/config/application.rb:9:in `<top (required)>'
/Users/myname/Desktop/github/company/Rakefile:4:in `require_relative'
/Users/myname/Desktop/github/company/Rakefile:4:in `<top (required)>'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

i have a problem when i did

bundle exec rails db:migrate

Any ideas on how to fix it?
I have no idea why _mysql_affected_rows is not found.
Help would be appreciated.

rails aborted!
LoadError: dlopen(/Users/myname/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.4/lib/mysql2/mysql2.bundle, 0x0009): symbol not found in flat namespace '_mysql_affected_rows' - /Users/myname/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.4/lib/mysql2/mysql2.bundle
/Users/myname/Desktop/github/company/config/application.rb:9:in `<top (required)>'
/Users/myname/Desktop/github/company/Rakefile:4:in `require_relative'
/Users/myname/Desktop/github/company/Rakefile:4:in `<top (required)>'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文