Sorry, we can also remove the old version of
actionmailer (2.2.2, 2.1.1)
actionpack (2.2.2, 2.1.1)
activerecord (2.2.2, 2.1.1)
activeresource (2.2.2, 2.1.1)
activesupport (2.2.2, 2.1.1)

We can remove all the 2.1.1 version
because the 2.2.2 dependent with each other with 2.2.2

Thanks.
Wesley Chen.


On Tue, Feb 24, 2009 at 10:02 PM, wesley chen <cjq....@gmail.com> wrote:

> I tried on my another machine that:
> gem list --local   # Get all the gems I have installed
>
> If there are more than one version of the gems installed, I
> gem uninstall (repeated gems)
> # Except
> actionmailer (2.2.2, 2.1.1)
> actionpack (2.2.2, 2.1.1)
> activerecord (2.2.2, 2.1.1)
> activeresource (2.2.2, 2.1.1)
> activesupport (2.2.2, 2.1.1)
> with dependent attributes
> then select the old version
>
> After that, I won't need restart my system and uninstall ruby, I find:
> require 'watir'
> $ie=Watir::IE.new
> can work.
>
> You may have a try.
> If you failed, you can do as the previous letter.
>
> Thanks.
> Wesley Chen.
>
>
>
> On Tue, Feb 24, 2009 at 2:56 PM, wesley chen <cjq....@gmail.com> wrote:
>
>> Hi, All,
>> I met this kind of problem recently tool.
>> Following Tony's advise, I remove Ruby1.8.6, then I reinstall by:
>> gem update --system
>> gem install watir
>>
>> After successfully, I restart my system, run command
>> regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3
>> .dll
>>
>> Anything goes well.
>>
>>
>>
>> Thanks.
>> Wesley Chen.
>>
>>
>>
>> On Tue, Feb 17, 2009 at 4:32 AM, Ben <benoit.lem...@gmail.com> wrote:
>>
>>>
>>> Hi Jaz,
>>>
>>> No... I didn't contact Daniel Berger yet because I wanted to do some
>>> more tests. I added more debug info to the involved gems and I found
>>> that the problem occurs at line 35 of windows-pr-1.0.1\lib\windows
>>> \msvcrt\string.rb...
>>> In that file at line 35, a call is made to strtok_s and this method is
>>> not found in my versions of the dlls. If I replace "strtok_s" with
>>> "strtok" everything works perfectly. According to what I've found on
>>> the net about strtok, it is better to use strtok_s instead of strtok
>>> since strtok uses a static variable to store the current token
>>> position and this issue has been fixed in strtok_s. It means that the
>>> file string.rb of the windows-pr gems is OK and I should not be using
>>> strtok. I suppose strtok_s is not found on my system because windows
>>> loads an older version of the dll containing the method. Does someone
>>> know which dll contains strtok/strtok_s?
>>>
>>> Thanks a lot for the help!
>>>
>>> Ben
>>>
>>> On Feb 13, 7:16 am, Jaz <jasmin.chazarr...@gmail.com> wrote:
>>> > Hi!
>>> >
>>> > Ben, did you get any help from Daniel Berger?
>>> >
>>> > The first thing I thought was just that there was some kind of
>>> > conflict with Visual Studio. I have installed Visual Web developer
>>> > 2008 and visual studio.
>>> > It's really strange because my colleague have the same programs
>>> > installed but she doesn't have any problem with watir, ruby.
>>> >
>>> > (Though, I think she installed watir BEfore she installed the other
>>> > microsoft products...)
>>> >
>>> > /Jasmin
>>> >
>>> > On 12 Feb, 17:11, Bret Pettichord <b...@pettichord.com> wrote:
>>> >
>>> > > Maybe.
>>> >
>>> > > You should talk to Daniel Berger, who maintains the windows gems. I
>>> > > don't think he reads this list.
>>> > > djber...@gmail.com
>>> >
>>> > > Bret
>>> >
>>> > > Ben wrote:
>>> > > > Ok... I tried a brand new installation of Ruby and Watir on a fresh
>>> > > > win xp install using a VMWare virtual machine and everything works
>>> > > > perfectly... I have both MS Visual Studio 2005 and Visual Studio
>>> 6.0
>>> > > > installed on my computer... I'm starting to beleive it might be a
>>> dll
>>> > > > version conflict caused by Visual Studio... What do you think of
>>> this?
>>> > > > Is it possible?
>>> >
>>> > > > Ben
>>> >
>>> > > > On Feb 12, 9:19 am, Ben <benoit.lem...@gmail.com> wrote:
>>> >
>>> > > >> I tried to completely uninstall (using gem uninstall
>>> <packagename>)
>>> > > >> and re-install win32-* gems, windows-* gems and Watir.. I still
>>> have
>>> > > >> the same problem. Here's my gem list :
>>> >
>>> > > >> *** LOCAL GEMS ***
>>> >
>>> > > >> activesupport (2.2.2)
>>> > > >> builder (2.1.2)
>>> > > >> commonwatir (1.6.2)
>>> > > >> firewatir (1.6.2)
>>> > > >> fxri (0.3.6)
>>> > > >> fxruby (1.6.16)
>>> > > >> hoe (1.8.3)
>>> > > >> hpricot (0.6.164)
>>> > > >> log4r (1.0.5)
>>> > > >> ptools (1.1.6)
>>> > > >> rake (0.8.3)
>>> > > >> ruby-opengl (0.60.0)
>>> > > >> rubyforge (1.0.2)
>>> > > >> s4t-utils (1.0.4)
>>> > > >> test-unit (2.0.2, 2.0.1)
>>> > > >> user-choices (1.1.6)
>>> > > >> watir (1.6.2)
>>> > > >> win32-api (1.3.0)
>>> > > >> win32-process (0.6.0)
>>> > > >> windows-api (0.3.0)
>>> > > >> windows-pr (1.0.1)
>>> > > >> xml-simple (1.0.11)
>>> >
>>> > > >> and here's my ENV :
>>> >
>>> > > >> RubyGems Environment:
>>> > > >>   - RUBYGEMS VERSION: 1.3.1
>>> > > >>   - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
>>> > > >>   - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
>>> > > >>   - RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
>>> > > >>   - EXECUTABLE DIRECTORY: C:/Ruby/bin
>>> > > >>   - RUBYGEMS PLATFORMS:
>>> > > >>     - ruby
>>> > > >>     - x86-mswin32-60
>>> > > >>   - GEM PATHS:
>>> > > >>      - C:/Ruby/lib/ruby/gems/1.8
>>> > > >>      - C:/Documents and Settings/benoit.MSHEADOFFICE/.gem/ruby/1.8
>>> > > >>   - GEM CONFIGURATION:
>>> > > >>      - :update_sources => true
>>> > > >>      - :verbose => true
>>> > > >>      - :benchmark => false
>>> > > >>      - :backtrace => false
>>> > > >>      - :bulk_threshold => 1000
>>> > > >>   - REMOTE SOURCES:
>>> > > >>      -http://gems.rubyforge.org/
>>> >
>>> > > >> Thanks for your help!
>>> >
>>> > > >> Ben Lemire
>>> >
>>> > > >> On Feb 12, 1:58 am, Bret Pettichord <b...@pettichord.com> wrote:
>>> >
>>> > > >>> I think you need to do more than that. The problem seems to be
>>> that
>>> > > >>> there bad versions of these gems out there, and that they were
>>> fixed
>>> > > >>> without changing the version number. So the gem installer won't
>>> update
>>> > > >>> your gem.
>>> >
>>> > > >>> The solution, therefore, would be uninstall these gems and then
>>> > > >>> reinstall them.
>>> >
>>> > > >>> Bret
>>> >
>>> > > >>> Charley Baker wrote:
>>> >
>>> > > >>>> It seems there are some compatibility issues here with some of
>>> the
>>> > > >>>> win32utils. Try updating your win32-api gem, win32-process and
>>> the
>>> > > >>>> windows-pr gem as well.  Same instructions that Aidy mentioned
>>> before
>>> > > >>>> with those gems.
>>> >
>>> > > >>>> Charley Baker
>>> > > >>>> blog:http://charleybakersblog.blogspot.com/
>>> > > >>>> Lead Developer, Watir,http://wtr.rubyforge.org
>>> > > >>>> QA Architect, Gap Inc Direct
>>> >
>>> > > >>>> On Thu, Feb 5, 2009 at 6:51 AM, aidy lewis <
>>> aidy.le...@googlemail.com
>>> > > >>>> <mailto:aidy.le...@googlemail.com>> wrote:
>>> >
>>> > > >>>>     This will work
>>> >
>>> > > >>>>      require 'watir'
>>> > > >>>>      Watir::Browser.default = "ie"
>>> > > >>>>      @browser ||= Watir::Browser.new
>>> >
>>> > > >>>>     Aidy
>>> >
>>> > > >>>>     2009/2/5 Jaz <jasmin.chazarr...@gmail.com
>>> > > >>>>     <mailto:jasmin.chazarr...@gmail.com>>:
>>> >
>>> > > >>>>     > Hi!
>>> >
>>> > > >>>>     > Thanks for answering so fast Aidy
>>> > > >>>>     > Unfortuneatly it still doesn't work =(
>>> >
>>> > > >>>>     > (Going crazy soon...)
>>> >
>>> > > >>>>     > /jasmin
>>> >
>>> > > >>>>     > On Feb 5, 1:59 pm, aidy lewis <aidy.le...@googlemail.com
>>> > > >>>>     <mailto:aidy.le...@googlemail.com>> wrote:
>>> > > >>>>     >> gem list -r win*
>>> >
>>> > > >>>>     >> gem update windows-api -y
>>> >
>>> > > >>>>     >> Aidy
>>> >
>>> > > >>>>     >> 2009/2/5 Jaz <jasmin.chazarr...@gmail.com
>>> > > >>>>     <mailto:jasmin.chazarr...@gmail.com>>:
>>> >
>>> > > >>>>     >> > How do I do that?
>>> >
>>> > > >>>>     >> > On Feb 5, 12:36 pm, aidy lewis <
>>> aidy.le...@googlemail.com
>>> > > >>>>     <mailto:aidy.le...@googlemail.com>> wrote:
>>> > > >>>>     >> >> At a guess try updating your windows api gem
>>> >
>>> > > >>>>     >> >> Aidy
>>> >
>>> > > >>>>     >> >> 2009/2/5 Jaz <jasmin.chazarr...@gmail.com
>>> > > >>>>     <mailto:jasmin.chazarr...@gmail.com>>:
>>> >
>>> > > >>>>     >> >> > Hi!
>>> >
>>> > > >>>>     >> >> > Recently installed ruby to use watir, and I get a
>>> strange
>>> > > >>>>     error when I
>>> > > >>>>     >> >> > execute the steps in "Watir in 5 minutes"
>>> > > >>>>     >> >> >
>>> http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes
>>> >
>>> > > >>>>     >> >> > These are the steps I follow:
>>> >
>>> > > >>>>     >> >> > 1. require "watir"
>>> >
>>> > > >>>>     >> >> > 2. ie = Watir::IE.new
>>> >
>>> > > >>>>     >> >> > When I perform step 2 I get the following error:
>>> >
>>> > > >>>>     >> >> > Win32::API::Error: Attempt to format message failed
>>> > > >>>>     >> >> > from
>>> > > >>>>
>>> C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/
>>> > > >>>>     >> >> > api.rb:333 in 'initialize'
>>> > > >>>>     >> >> > from
>>> > > >>>>
>>> C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/
>>> > > >>>>     >> >> > api.rb:333 in 'new'
>>> > > >>>>     >> >> > .
>>> > > >>>>     >> >> > .
>>> > > >>>>     >> >> > .
>>> > > >>>>     >> >> > .. and the message continues.
>>> > > >>>>     >> >> > I can write the whole message down if necessary.
>>> It's
>>> > > >>>>     really long =(- Hide quoted text -
>>> >
>>> > > >>>>     >> >> - Show quoted text -- Hide quoted text -
>>> >
>>> > > >>>>     >> - Show quoted text -- Dölj citerad text -
>>> >
>>> > > - Visa citerad text -
>>> >>>
>>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to