Edit: Workaround is simply to use ruby 1.9.3-p125 instead.
I've installed ruby version manager (I'm using Raspbian as downloaded this morning), and I ran
rvm install ruby to download and compile the latest stable ruby (1.9.3-p194).
It spends a while compiling then fails with a message saying something about
make failed (message has gone off screen so don't know exact text), and directing me to a log file at
[2012-07-25 02:14:58] make CC = gcc LD = ld LDSHARED = gcc -shared CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT CPPFLAGS = -I. -I.ext/include/armv6l-linux-eabi -I./include -I. DLDFLAGS = -Wl,-soname,libruby.so.1.9 SOLIBS = -lpthread -lrt -ldl -lcrypt -lm linking miniruby math.o: file not recognized: File truncated collect2: ld returned 1 exit status make: *** [miniruby] Error 1
I've read through the output of both
rvm notes and
rvm requirements and I seem to have satisfied all of the listed dependencies.
How can I make it compile properly? TIA.