相关疑难解决方法(0)

MYSQL安装问题

在我的mac上通过终端升级了几个gem之后,我创建了一个由mysql数据库备份的新rails项目.启动应用程序后,将显示常规欢迎页面.

这是问题 - 我尝试单击标题为"关于您的应用程序的环境"的链接,我在浏览器中收到以下输出:

MissingSourceFile in Rails/infoController#properties
no such file to load -- mysql
Run Code Online (Sandbox Code Playgroud)

我也在终端收到此输出

The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
Processing Rails::InfoController#properties (for 127.0.0.1 at 2008-12-09 20:41:41) [GET]
Processing Rails::InfoController#properties (for 127.0.0.1 at 2008-12-09 20:41:41) [GET]
MissingSourceFile (no such file to load -- mysql):
...
Run Code Online (Sandbox Code Playgroud)

正如它所说的那样,我在停止应用程序后尝试发出"gem install mysql",只是受到了我无法理解的这一块行话的欢迎:

WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
      /usr/bin aren't both writable.
WARNING:  You don't have /Users/mymac/.gem/ruby/1.8/bin …
Run Code Online (Sandbox Code Playgroud)

mysql macos installation ruby-on-rails

3
推荐指数
1
解决办法
6361
查看次数

标签 统计

installation ×1

macos ×1

mysql ×1

ruby-on-rails ×1