From: Brian Candler Date: 2007-04-08T23:24:54+09:00 Subject: Re: Minimum ruby installation. On Sun, Apr 08, 2007 at 10:05:24PM +0900, bino_oetomo wrote: > Since I come from a community of users of Small linux distro, my concern is > about a micro Ruby "distro" (maybe like Micro Perl) > > So Here is my question : > > 1. Is there anyone can give me a list of extremely minimal files that have > to be compiled to got ruby core interreter work properly ? > 2. What is the minimal libs have to be loaded/compiled to write : > ++ Jabber client > ++ BASH similar : Cat, Cut, sed > > I'm intended to compile of that minimal files with uCLib .. and may be > create a "*.lrp" package for the LEAF community. A full Ruby distribution is about one-third of the size of a base Perl distribution, and yet includes a lot of stuff missing from base Perl (such as openssl libraries) Now, I can't give you an exact answer to your question. If you look at ext/Setup you'll see a bunch of 'optional' C libraries you can disable or enable. You can leave them all disabled of course, but things like 'socket' would be important for network clients. However, most of the libraries supplied with Ruby are written in Ruby. You'll have to look at the sizes of them and decide which you want to leave out. If you don't want an XML parser, then you can leave out REXML (but then again, Jabber is an XML-based protocol I believe). Regards, Brian.