ruby win32-process

Z

Ze Maria

Hi guys,
I've being using win32-utils package, more specifically win32-process.
I've used it windows XP but now I've some servers running Windows Server
2008, and when I execute the
require 'win32/process'

I get the following error message:

irb(main):031:0> require 'win32/process'
RuntimeError: GetProcAddress: SetConsoleCommandHistoryMode or
SetConsoleCommandH
istoryModeA

from
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console
rb:76:in `initialize'
from
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console
rb:76:in `new'
from
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console
rb:76
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.0-mswin32/lib/win3
2/process.rb:6
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from (irb):31


Tks in advance
Jose
 
D

Daniel Berger

Ze said:
Hi guys,
I've being using win32-utils package, more specifically win32-process.
I've used it windows XP but now I've some servers running Windows Server
2008, and when I execute the
require 'win32/process'

I get the following error message:

irb(main):031:0> require 'win32/process'
RuntimeError: GetProcAddress: SetConsoleCommandHistoryMode or
SetConsoleCommandH
istoryModeA

from
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console
.rb:76:in `initialize'

<snip>

You'll want to upgrade your windows-pr library. :)

Regards,

Dan
 
Z

Ze Maria

Daniel said:
<snip>

You'll want to upgrade your windows-pr library. :)

Regards,

Dan

But how ?
I already have the latest version for windows , wi32-process 0.6.2
 
D

Daniel Berger

Ze said:
But how ?
I already have the latest version for windows , wi32-process 0.6.2

windows-pr and win32-process are two separate libraries.

gem install windows-pr

windows-pr is currently at release 0.7.2

Regards,

Dan
 
Z

Ze Maria

Daniel said:
windows-pr and win32-process are two separate libraries.

gem install windows-pr

windows-pr is currently at release 0.7.2

Regards,

Dan

Hello Dan,
Thanks it worked fine.
Best Regards,
José
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top