I am trying to install a 32bit build of Ruby on Lion so that I can do some work with Oracle. However I can’t get it to build.
With 1.9.3-p0 this is as far as I get:
linking miniruby
i686-apple-darwin11-gcc-4.2.1: i386: No such file or directory
make: *** [miniruby] Error 1
My build variables are as follows:
CC = /usr/bin/gcc-4.2
LD = ld
LDSHARED = /usr/bin/gcc-4.2 -dynamic -bundle
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=shorten-64-to-32 -Werror=implicit-function-declaration -arch i386 -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/i386-darwin11.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -arch i386
SOLIBS =
I am using the following configure:
./configure --with-arch=i386 --prefix=/Users/fenris/.rbenv/versions/32-bit
Any help would be appreciated.
Using rvm myself but tried out on rbenv as well and worked for me:
RBENV compiling 32 bit ruby-1.9.3-p0
!!! installing libyaml before doing this could be needed
Installing libyaml
installing ruby
RVM compiling 32 bit ruby-1.9.3-p0
…
Verify that you are running a 32 bit ruby