Unfortunately it doesn’t have most standard libraries or rubygems, which
make it somewhat limited (e.g. irb doesn’t work). The iphone doesn’t
compiler that runs ON the phone, so everything has to be cross-compiled
your own computer. That means even once ruby is running on the phone,
would have to pre-compile any gems with C before putting them on the
For more complicated libraries such as ruby, compiling it required a lot
hand-tweaking and static compiling. If anyone wants to lend a hand,
especially with just getting a solid ruby binary with stdlib and
it would be greatly appreciated. There is a working toolchain that you
install on your computer. We use this to compile anything (cocoa apps,
just binaries we run from the shell). You can check out the following
for more detail:
Check out the IRC channels from the 2nd link. Most of the active
especially for compiling, is in #iphone-dev and #iphone-uikit. The
ruby binary was compiled by NerveGas.
If you have not been actively following the iphone hackery, there is a
of interesting and impressive work that’s been done.
PS - Python is working pretty well, and includes a working module for
sqlite. There is a sqlite3 binary in the first link, if you want to run
directly from the shell.