I have been trying to get ruby installed onto the beaglebone board and
there seems to be two frustrating errors with the compilation of the
openssl ruby library that effectively stops the ruby gem package
manager and all of the included gems from working and compiling native
Ruby is installed from the http://www.angstrom-distribution.org/repo
and ruby gems was compiled from the source on http://rubygems.org/pages/download.
There are two problems. The first is that any gem installation that
needs to build a native extension fails as the ruby mkmf utility
incorrectly sets the INSTALL variable in the Makefile to:
This can be overcome by correcting the Makefile and then 'make
install' followed by the following commands (eg. for the thin gem)
from the /usr/lib/ruby/gems/1.8/gems/thin-1.3.1 directory:
gem spec ../../cache/thin-1.3.1.gem --ruby > ../../specifications/
This will install the gem.
I don't know where the /OE/angstrom-setup-scripts/build/tmp-
angstrom_2008_1/sysroots/x86_64-linux directory prefix is coming from
but this happens on EVERY gem installation with a build extension
The other more serious problem is that none of the gems will work as
there is a link error with the versions of libssl and libcrypto. The
rubygems process will try to use libssl.so.1.0.0 and libcrypto.so.
1.0.0 (possibly from using the symbolic link libssl.so -> libssl.so.
1.0.0 and libcrypto.so -> libcrypto.so.1.0.0) and fails as it expects
version 'OPENSSL_0.9.8'. I did install the 0.9.8 version of these
libraries but this did not fix the problem and these is no openssl
package for 0.9.8 available for the armv7a architecture.
Does anyone have any pointers as to the ruby mkmf INSTALL directory
problem or the issue with the openssl/libssl/libcrypto problems?