From: Michael Gebhart Date: 2005-09-04T09:56:26+09:00 Subject: Re: Installing a ruby application on a linux system Hi, rbasm is a script a developer wrote: http://www.wikidorf.de/reintechnisch/Inhalt/RSAsmRb It replaces each line "require 'xy' #include' with the content of the file xy. So you can write different files, and after using rbasm you have one big file with the complete source code. > The standard install.rb (and also setup.rb, which is similar, IIRC) > copies from your bin/ dir to the standard bin dir for your ruby > installation. On my system that is /usr/local/bin. > So why not just put the main entry point (which can be very simple--just > require a lib file and invoke a method) for your GUI in bin/, leave the > libs in lib/, and let the user run setup.rb? Yeah this is, what I wanted to do. My problem is: Normally lib/ is installed to the ruby-dir in e.g. /usr/lib/ruby/site-ruby/1.8/. But this directory primarily is for modules, which should be reusable for all other ruby application. But some parts of my application don�t make sense to be reused. E.g. the GUI Part. So I thought about splitting my program in components: The entry point (script with the name of the application e.g. myapplication) in /bin The files, that can be reused as modules in /usr/lib/ruby/site-ruby/1.8 The files, that are needed by the entry point, but shouldn�t be reused in /usr/lib/myapplication/ But I am not sure, if this is a right way to do it. When putting all the files in the ruby-dir also the GUI elements can be reused. This doesn�t make any sense for me. Greetings Mike