win32-api [build, compile error?]

B

Bigmac Turdsplash

Daniel said:
You shouldn't have to build it if you're using the one-click
installer. It should install the binary gem.

gem install win32-api

Regards,

Dan

I have done this,

Select which gem to install for your platform (i386-mswin32)
1. win32-api 1.4.5 (ruby)
2. win32-api 1.4.5 (x86-mswin32-60)
3. win32-api 1.4.4 (x86-mswin32-60)
4. win32-api 1.4.4 (ruby)
Successfully installed win32-api-1.4.5-x86-mswin32-60
Installing ri documentation for win32-api-1.4.5-x86-mswin32-60...
Installing RDoc documentation for win32-api-1.4.5-x86-mswin32-60...

that one gives me no errors but when i run my script that requires
win32/api.rb

require 'win32/api'
no such file or directory...
 
D

Daniel Berger

Bigmac said:
I have done this,

Select which gem to install for your platform (i386-mswin32)
1. win32-api 1.4.5 (ruby)
2. win32-api 1.4.5 (x86-mswin32-60)
3. win32-api 1.4.4 (x86-mswin32-60)
4. win32-api 1.4.4 (ruby)
Successfully installed win32-api-1.4.5-x86-mswin32-60
Installing ri documentation for win32-api-1.4.5-x86-mswin32-60...
Installing RDoc documentation for win32-api-1.4.5-x86-mswin32-60...

that one gives me no errors but when i run my script that requires
win32/api.rb

require 'win32/api'
no such file or directory...

First, I think you need to upgrade your rubygems library. Run "gem
update --system". If that should fail, grab the source from
http://www.rubyforge.org/projects/rubygems and install manually.

Next, make sure your RUBYOPT environment variable is set. Or, if you
prefer, explicitly require 'rubygems' first before attempting to require
'win32/api'.

Regards,

Dan
 

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,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top