Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:13:13+00:00 2026-05-28T16:13:13+00:00

I am trying to install a 32bit build of Ruby on Lion so that

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:13:15+00:00Added an answer on May 28, 2026 at 4:13 pm

    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

    wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    tar -xzf yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    ./configure --prefix=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit
    make 
    make install
    

    installing ruby

    cd
    wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
    tar -xzf ruby-1.9.3-p0.tar.gz
    cd ruby-1.9.3-p0
    autoconf
    ./configure --disable-pthread --with-opt-dir=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit --with-arch=i386 --prefix=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit 
    make
    make install
    

    RVM compiling 32 bit ruby-1.9.3-p0

    export rvm_archflags='-arch i386'
    export rvm_architectures='i386'
    export rvm_configure_flags=--target=i686-apple-darwin11
    rvm install ruby-1.9.3-p0 --32 --patch osx-arch-fix -n i386
    

    …

    Verify that you are running a 32 bit ruby

    $ irb
    ['foo'].pack('p').size
    
    // should return 8 on 64bit and 4 on 32bit.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install pear package and keep getting this strange error. Can you shed
I was trying to compile some C++ source that uses scons as its build
When trying to install my 32bit service on a Windows 64bit machine my installer
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
I'm trying to install Windows 7 64bit (as oppose to 32bit), mainly because large
I'm trying to install SQL Server 2008 R2(Express) on Windows Developer Preview (32bit) but
I've been going stir crazy trying to install the ruby mysql gem here, and
I am trying to install Orange on my Mac OS X 10.7.3 (Lion) and
I'm trying to install a prebuilt binary in a custom Android image. For that
I've been trying to get Ruby on Rails working on my Snow Leopard 64-bit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.