problem requiring gems under 1.9.1 mingw

M

Michel Demazure

I have both 1.8.6 and 1.9.1 (both mingw under windows).

My code requires windows-api, which requires win32-api. It works under
1.8. Under 1.9, I get :

F:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1:in
`require': no such file to load -- win32-api (LoadError)
from
F:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1:in
`<top (required)>'

The loaded gems are the same under 1.8 and 1.9 :
The win32-api gem is the mswin32 one : win32-api-1.4.5-x86-mswin32-60.

Any idea ? Thanks !
 
L

Luis Lavena

I have both 1.8.6 and 1.9.1 (both mingw under windows).

My code requires windows-api, which requires win32-api. It works under
1.8. Under 1.9, I get :

F:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1:i n
`require': no such file to load -- win32-api (LoadError)
        from
F:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1:i n
`<top (required)>'

The loaded gems are the same under 1.8 and 1.9 :
The win32-api gem is the mswin32 one : win32-api-1.4.5-x86-mswin32-60.

Any idea ? Thanks !

1) You're using pre-compiled version of gems that are made to work on
1.8, not 1.9

Please install the DevKit for the MinGW version of Ruby and try
install the gem again.
 
B

Bernard Kenik

Luis said:
1) You're using pre-compiled version of gems that are made to work on
1.8, not 1.9

Please install the DevKit for the MinGW version of Ruby and try
install the gem again.

Additional note:

OP should use: require 'windows/api' and not require 'windows-api'
The latter causes error in both 1.8 and 1.9.

bbiker
 
M

Michel Demazure

Bernard said:
OP should use: require 'windows/api' and not require 'windows-api'
The latter causes error in both 1.8 and 1.9.

bbiker

Yes, I should have written : my code requires windows-api by 'require
windows/api'
 
M

Michel Demazure

Luis said:
1) You're using pre-compiled version of gems that are made to work on
1.8, not 1.9

Please install the DevKit for the MinGW version of Ruby and try
install the gem again.

Thanks, Luis, I'll try that.
BTW, many thanks for your very useful job on the installer !
MD
 
M

Michel Demazure

Michel said:
Thanks, Luis, I'll try that.
BTW, many thanks for your very useful job on the installer !
MD

Worked most easily and perfectly !
The devkit is as remarkable as the installer...
Thanks again, Luis.
Happy new year to all.
MD
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top