找不到 activerecord-jdbcmysql-adapter(现有的是 Java 的)
我已经为这个问题苦苦挣扎了几个小时,它甚至阻止我启动我的服务器,因此完全停止了开发。
我运行的是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.