`exec': wrong number of arguments (ArgumentError) when using bundle exec

57 views
Skip to first unread message

Distriker

unread,
Jun 21, 2011, 2:13:31 PM6/21/11
to rubyonra...@googlegroups.com
Hi! I'm trying to make a migration, but when I do "rake db:migrate" tell me this:
You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7. Consider using bundle exec.
Then, I use a bundle exec, but I have other error:
`exec': wrong number of arguments (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/cli.rb:346:in `exec'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `send'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
Anyone know why show me this error? 

Regards, Iván

Chirag Singhal

unread,
Jun 22, 2011, 12:18:39 AM6/22/11
to rubyonra...@googlegroups.com
When it says try using bundle exec... it means that you have to prefix the command with that
Use it like this 'bundle exec rake db:migrate'

Iván Hernández

unread,
Jun 22, 2011, 5:56:55 AM6/22/11
to rubyonra...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/Bf4nuK8WxBUJ.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, I understand. Thanks!

Regards, Iv�n

Reply all
Reply to author
Forward
0 new messages