How to run my ruby application using ruby extension library (in c), in windows? -
I would be grateful for any help on this: I want to write an extension in my C library. The file I created is zmq.cpp which uses the library libzmq (written in C ++).
I created makefile using ruby extconf.rb, then I run nmake. It all went fine Nmake generated files
librbzmq-i386-mswin32.def librbzmq-i386-mswin32.lib librbzmq-i386-mswin32.exp librbzmq.so librbzmq.so.manifest . It was all done in Windows XP
Then I have a test program, that is in my first line:
requires 'librbzmq' < / code> I
ruby I try to run my test program using the "C: \ wcopy \ trunk \ librbzmq \ librbzmq-i386-mswin32 \ documents and Settings \ Kustarova .lib "-i" C: \ documents and Settings \ Kstarova \ wcopy \ trunk \ windows \ debug \ libzmq.lib "./rb_remote_lat.rb I get Need `` in
rb-remote_lat.rb: 1: Ti ': No such file to load - librbzmq ./rb_remote_lat.rb:1:in from (LoadError) `& LT; Main & gt; ' File locations are correct, I checked it
Do you know how to run it
Note:. I did all this in Ubuntu and it works fine - I made the makefile, and was able to run the test application using similar order (only paths were different).
Thank you
Correcting my first answer - It seems that you " The way I supplied using "I" is wrong, it should point to the directory where librbzmq.so can also be found. Use
installed nmake or RUBYLIB to setup search path ::
Set Alternatively can set up library use RUBYLIB = "C: \ Documents and Settings \ Kustarova \ wcopy \ trunk \ librbzmq" regards
grant
Comments
Post a Comment