From: Ruby Rubyruby Date: 2007-08-03T03:06:10+09:00 Subject: Deployable project with C source code Hi. Ruby novice here. So far, I have had a great experience programming Ruby where I have only been relying on the standard library. Lately, I have been wanting to tie some of my tools into a nice GUI using QT or Tk. I understand that running "ruby extconf.rb" will dynamically generate a Makefile for me based on my OS, and that I run that in order to compile and clean up my code. I also understand that the source code that is provided would extend my Ruby API in order to access lower level code that would enable me to access these C libraries as objects in Ruby. What I fail to understand is how to make a project that relies on such souce code easily deployable. For example, if I were writing something that only relied on the Ruby standard library, all I would do is tar up my project with a README saying "type: ruby main.rb" and it would all work nicely. Now, I want to write something that will compile code that extends the API if necessary, then clean everything up and run my main.rb. How do I go about doing such a thing? In Java, everything gets tied into a .jar file and when you compile it goes from source->java bytecode. I see the transition from Ruby->c->binary has a setback of having to do a little bit more work than you would in Java. I could be wrong though. Any feedback would be greatly appreciated. Thanks for your time. -Mr. Rubyruby -- Posted via http://www.ruby-forum.com/.