view · edit · sidebar · attach · print · history

<< | Index | Aliasing >> Compiling Ruby on 64bit OS for 32bit

  • export CFLAGS=-m32
  • export LDFLAGS=-m32
  • setarch i686 ./configure --prefix=/opt/ruby

You can get rid of below error by setting above correct prefix.

from here: http://groups.google.com/group/phusion-passenger/browse_thread/thread/dbbb7739ab87433c/e6e3458e0a2f30a4

  • when starting the App openssl.so can not be correctly loaded:
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /usr/local/lib/ruby/1.9.1/i686-linux/openssl.so:
undefined symbol: d2i_ECPKParameters - /usr/local/lib/ruby/1.9.1/i686-linux/openssl.so (LoadError)

and this is no help:

  • LD_LIBRARY_PATH=/usr/lib32
  • export LD_LIBRARY_PATH

from here: http://discuss.joyent.com/viewtopic.php?id=25862

view · edit · sidebar · attach · print · history
Page last modified on March 15, 2012, at 11:30 AM