This is an old revision of the document!
Some daemons need to be compiled on another host machine, since the Chumby is not powerful enough for this task (and has not enough memory). Here are my notes:
Compile the libraries and install them into /mnt/storage (use –-prefix where necessary).
BASEDIR=/mnt/storage/usr export PATH=$PATH:$BASEDIR/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASEDIR/lib
export ac_cv_func_getpgrp_void=yes export ac_cv_func_setpgrp_void=yes ./configure --target=arm-linux --host=arm-linux --disable-pthread --enable-wide-getaddrinfo --enable-zlib --with-zlib-dir=/mnt/storage/usr --enable-readline --with-readline-dir=/mnt/storage/usr --prefix=/mnt/storage/usr --with-openssl-dir=/mnt/storage/usr && make && make install
/mnt/storage/usr/bin/ruby setup.rb --prefix=/mnt/storage/usr mkdir -p /mnt/storage/usr/lib/ruby/gems/1.8
Afterwards, the necessary gems can be installed using the gem command. It might be necessary to provide additonal path information to the gems that compile native extensions, for example
gem install sqlite3-ruby -- --with-sqlite3-dir=/mnt/storage/usr
The result is an image with Ruby installed, and all necessary gems for my project. The tarball can be downloaded here. To install, scp it to the Chumby and log in:
scp *tarball* root@*chumby-ip*:/mnt/storage ssh -l root *chumby-ip* cd /mnt/storage tar xvzf *tarball*
Now you have a directory /mnt/storage/usr with all tools permanently installed on your Chumby. In order to use it, please adjust your PATH and LD_LIBRARY_PATH appropriately:
export BASEDIR=/mnt/storage/usr export PATH=$PATH:$BASEDIR/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASEDIR/lib