Hi Jamis,

Thanks, I tried what you suggested, and it seems that was part of
problem, I had two versions of Capistrano 2.2.0, and 2.3.0 on my
system.  I uninstall and then reinstall and some parts of capistrano
worked.

However, I tried

C:\Program Files\Subversion\tours>cap deploy:setup

and the following is the error message.

C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.3.0/lib/ca
pistrano/configuration/variables.rb:122:in `method_missing': undefined
method `y
set' for #<Capistrano::Configuration:0x346fe08> (NoMethodError)
        from ./config/deploy.rb:1:in `load'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:173:in `load_from_file'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:89:in `load'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:86:in `load'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:86:in `each'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:86:in `load'
        from ./Capfile:3:in `load'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/configuration/loading.rb:173:in `load_from_file'
         ... 8 levels...
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/lib/capistrano/cli/execute.rb:14:in `execute'
        from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano
-2.3.0/bin/cap:4
        from C:/InstantRails/InstantRails/ruby/bin/cap:19:in `load'
        from C:/InstantRails/InstantRails/ruby/bin/cap:19

Any ideas?

On May 29, 3:44 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> It looks like you installed capistrano originally with an older
> version of rubygems. What happens if you delete that file (the "cap"
> script) and then reinstall capistrano? Or you could probably just do
> "gem uninstall capistrano" to remove all installed versions, and then
> reinstall capistrano.
>
> - Jamis
>
> On May 29, 2008, at 3:39 PM, CathyM wrote:
>
>
>
> > Hello,
>
> > I am having problems setting up Capistrano on my windowsXP machine. I
> > install it, updated the gems, but when I type any cap command,
> > either -
> > V, setup, deploy, etc, I get the following message:
>
> > /ruby/bin/cap:17: undefined method `require_gem' for main:Object
> > (NoMethodError)
>
> > I've check the cap file and found this:
>
> > # The application 'capistrano' is installed as part of a gem, and
> > # this file is here to facilitate running it.
> > #
>
> > require 'rubygems'
> > version = "> 0"
> > if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
> > if Gem::Version.correct?(ARGV[0][1..-2])
> > version = ARGV[0][1..-2]
> > ARGV.shift
> > end
> > end
> > require_gem 'capistrano', version
> > load 'cap'
>
> > Any ideas on what to change to make it work?
> > >
>
>
>  smime.p7s
> 3KDownload

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to