> I need to have some functionality "packaged" as an unix library
Just write the ruby code or use what is already available.
Ruby can do the same what the unix tools can. Its just a question of
how much work to invest :-)

> but I'd like to write it in Ruby and then, somehow, compile it.
Compile ruby code? That is not really possible. It's just .rb files.

> Is it possible?
I dont think it is.
-- 
Posted via http://www.ruby-forum.com/.