Manuel Souto Pico wrote:
>I'm
>running this on cygwin and have also tried in an Ubuntu server. Running
>ocra outputs an error that tells me to install win32-api, which I do,
>but after that I still get the same error.


Does ocra work with Linux or another unix-like environment? I thought, 
it's only runnable on Windows, because of win32-api. However, with 
--no-autodll I get this on Ubuntu 9.04:

# ocra t.rb --no-autodll
=== Loading script to check dependencies
Hello World!
=== Building t.exe
a src\t.rb
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:440:in 
`initialize': No such file or directory - 
/opt/rubies/ruby-1.9.1-p243/bin/ruby.exe (Errno::ENOENT)
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:440:in 
`open'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:440:in 
`createfile'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:281:in 
`block in build_exe'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:404:in 
`block in initialize'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:396:in 
`open'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:396:in 
`initialize'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:264:in 
`new'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:264:in 
`build_exe'
  from 
/opt/rubies/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/ocra-1.1.2/bin/ocra:465:in 
`block in <top (required)>'

I would suggest trying it on a real Windows, not cygwin.

Marvin
-- 
Posted via http://www.ruby-forum.com/.