zookeeper53 2008-7-22 14:32
gem install mysql 出错,谁知道这么解决
无论我本地安装,还是远程安装,都出同样的错.
现在好像,mysql的适配器也有问题,rake db:migrate 最后也出错.
谁知道这么解决,谢谢.
C:\webDownLoad>gem install mysql-2.7.3-mswin32 -l
Successfully installed mysql-2.7.3-x86-mswin32
1 gem installed
Installing ri documentation for mysql-2.7.3-x86-mswin32...
Installing RDoc documentation for mysql-2.7.3-x86-mswin32...
ERROR: While generating documentation for mysql-2.7.3-x86-mswin32
... MESSAGE: Unhandled special: Special: type=17, text="<!-- $Id: README.html,v 1.20 2006-12-20 05:31:52
... RDOC args: --op D:/Program Files/ruby/lib/ruby/gems/1.8/doc/mysql-2.7.3-x86-mswin32/rdoc --exclude ext
(continuing with the rest of the installation)
martin 2008-7-22 15:07
[quote]Successfully installed mysql-2.7.3-x86-mswin32
1 gem installed[/quote]
你已经安装成功了,从你的出错信息看,是因为生成rdoc是报的错,这个不影响你的使用。
rake db:migrate 报错,跟这个应该没关系的。没有出错信息,大家无法帮助你的,建议将rake db:migrate的出错信息贴出来。
zookeeper53 2008-7-22 15:34
C:\rubydev\AWDR\depot>rake db:migrate
(in C:/rubydev/AWDR/depot)
rake aborted!
undefined method `each' for #<Mysql:0x38e3624>
(See full trace by running task with --trace)
另外发现,我uninstall mysql 后,
在migrate,报的错是一样的.
zookeeper53 2008-7-22 15:36
也就是说,有这个mysql (2.7.3),和没有,是一样的错
zookeeper53 2008-7-22 15:38
话说,某大侠建议我用,linxu
zookeeper53 2008-7-22 15:44
现在我的rails上,不能用mysql......无语中.....:L
zookeeper53 2008-7-22 16:19
我直接重装了ruby和rails.....火大....
martin 2008-7-22 17:20
你执行[code]rake --trace db:migrate[/code]看看具体的错误在哪里,不心急,有问题解决就好了:)
zookeeper53 2008-7-23 14:33
把ruby,rails都重装了,:L 重新来过...
.....我win-xp的系统.现在都不敢敲gem install mysql.....
acnono 2008-10-13 11:34
c:\ruby>gem install mysql --remote
Successfully installed mysql-2.7.3-x86-mswin32
1 gem installed
Installing ri documentation for mysql-2.7.3-x86-mswin32...
Installing RDoc documentation for mysql-2.7.3-x86-mswin32...
ERROR: While generating documentation for mysql-2.7.3-x86-mswin32
... MESSAGE: Unhandled special: Special: type=17, text="<!-- $Id: README.html,
v 1.20 2006-12-20 05:31:52 tommy Exp $ -->"
... RDOC args: --op c:/ruby/lib/ruby/gems/1.8/doc/mysql-2.7.3-x86-mswin32/rdoc -
-exclude ext --main README --quiet ext README docs/README.html
(continuing with the rest of the installation)
c:\ruby>