您的位置:首页 > 其它

Rake: wrong number of arguments (3 for 2)

2012-12-12 10:08 495 查看
Rake is a simple ruby build program similar to make. There are many versions of Rake are available. If you are using Rake-0.9.x you might come to the error, “wrong number of arguments (1 for 0) (ArgumentError)”. While the same piece of code runs without error on Rake-0.8.x.

Here you will find the two methods to deal with this problem. The first
one is simple, remove 0.9.x version and install 0.8.x version the latest
one is in this series is 0.8.7.

$ gem uninstall rake –v 0.9.x
$ gem install rake –v 0.8.7


The second method is to use rake command with version number.
$ rake _0.8.7_

from:http://codefundas.blogspot.co.at/search?updated-min=2012-01-01T00:00:00-08:00&updated-max=2013-01-01T00:00:00-08:00&max-results=3
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: