找不到 activerecord-jdbcmysql-adapter(现有的是 Java 的)

发布于 2024-09-08 04:08:22 字数 745 浏览 2 评论 0原文

我已经为这个问题苦苦挣扎了几个小时,它甚至阻止我启动我的服务器,因此完全停止了开发。

我运行的是 Windows、Bitnami Rubystack,仅此而已。我昨天下载并安装了 NetBeans,但我的主要编辑器是 Notepad++。我没有使用 JRuby。

这是确切的消息(在尝试启动 ruby​​ 脚本/服务器时):

irb: gem install activerecord-jdbcmysql-adapter
ERROR: Could not find a valid gem 'activerecord-jdbcmysql-adapter' (>= 0), here is why:
  Found activerecord-jdbcmysql-adapter (0.9.7), but was for platform java

我已尝试以下命令:

gem install activerecord-jdbcmysql-adapter
gem install activerecord-jdbc-mysql-adapter
gem install --platform java activerecord-jdbcmysql-adapter (installed but didn't help, uninstalled again)
gem install rails (now 2.3.8)
gem update --system (now 1.3.7)

任何帮助将不胜感激。谢谢。

I've been struggling with this problem for a few hours and it is preventing me from even starting my server, which therefore is stopping development completely.

I am running Windows, Bitnami Rubystack, and that's pretty much it. I downloaded and installed NetBeans yesterday but my primary editor is Notepad++. I am not using JRuby.

Here is the exact message (upon trying to start ruby script/server):

irb: gem install activerecord-jdbcmysql-adapter
ERROR: Could not find a valid gem 'activerecord-jdbcmysql-adapter' (>= 0), here is why:
  Found activerecord-jdbcmysql-adapter (0.9.7), but was for platform java

I have tried the following commands:

gem install activerecord-jdbcmysql-adapter
gem install activerecord-jdbc-mysql-adapter
gem install --platform java activerecord-jdbcmysql-adapter (installed but didn't help, uninstalled again)
gem install rails (now 2.3.8)
gem update --system (now 1.3.7)

Any help would be much appreciated. Thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心意如水 2024-09-15 04:08:22

Netbeans 倾向于修改您的 config/database.yml 来激活 jdbc。由于您没有使用 JRuby,因此不需要它,您可以编辑 config/database.yml 并将 jdbc 更改为适合您的任何内容。

Netbeans tends to modify your config/database.yml to activate jdbc. Since you're not using JRuby you don't need it, you can edit config/database.yml and change jdbc to whatever suits you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文