Skip to content

Instantly share code, notes, and snippets.

@avsej
Created December 15, 2010 07:12
Show Gist options
  • Save avsej/741722 to your computer and use it in GitHub Desktop.
Save avsej/741722 to your computer and use it in GitHub Desktop.
build ruby for arm platform (e.g. for amazon kindle)
echo "deb http://emdebian.org/debian/ lenny main" >> /etc/apt/sources.list
apt-get update
apt-get install binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi libc6-dev-armel-cross
cd /path/to/ruby/1.8.7/sources
autoconf
CFLAGS="--static" LDFLAGS="--static" CC="arm-linux-gnueabi-gcc" ac_cv_func_setpgrp_void=yes ac_cv_func_isinf=no ac_cv_func_isnan=no ac_cv_func_finite=no CROSS_COMPILING=1 ./configure --host="arm-linux-gnueabi" --prefix=/mnt/us/opt
make
make install
# now you have to copy contents of /mnt/us/opt to your device and everything should work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment