Skip to content

Instantly share code, notes, and snippets.

@kost
Forked from avsej/gist:741722
Created December 18, 2011 20:05
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kost/1494305 to your computer and use it in GitHub Desktop.
Save kost/1494305 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