Ruby extension mingw32 libraries on mswin32?

Hi!

I created Ruby-GTK2 libraries with MinGW-built Ruby. What has to be done
in order to run Ruby application on mswin32-built Ruby?

When I try to run Ruby script, I get the 1157 Load Error.

I also tried to create *.exe with exerb, but I get the same error.

There are posts in hte archive regards, and it looks that there is more
luck with Ruby 1.8.

Is it true? (I have problems compiling Ruby 1.8 with MingW :frowning:

Sincerely,
Gour

···


Gour
gour@mail.inet.hr
Registered Linux User #278493

Gour wrote:

When I try to run Ruby script, I get the 1157 Load Error.

Hi Gour.

Your previous post indicates that you’re almost there. The test app ran
under a windows emulator, and under native windows you get error 1157
(which means “ERROR_DLL_NOT_FOUND: One of the library files needed to
run this application cannot be found.”)

Find out which dlls are required by the ruby .so extension and make sure
each and every one is on the PATH. Better not rely on assumptions that
something will be found because it’s in the same directory as something
else.

You need a tool like cygwin’s “cygcheck.exe” for examining the required
dlls. cygcheck.exe works like ldd on unix; it is a 30kbyte standalone
tool that does not require any other cygwin components. It’s in the
cygwin package named “cygwin”. You may find a bare cygcheck.exe via google.

T