Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: fred78800 on September 25, 2015, 11:58:30 AM
-
Issue discovered using gem install.
Can also be raised from irb :
irb(main):001:0> require 'openssl'
LoadError: /usr/local/lib/ruby/2.0.0/i686-linux/openssl.so: undefined symbol: SSLv2_method - /usr/local/lib/ruby/2.0.0/i686-linux/openssl.so
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/2.0.0/openssl.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from (irb):1
from /usr/local/bin/irb:12:in `<main>'
Looks very similar to Python-SSL issue described recently : http://forum.tinycorelinux.net/index.php/topic,18804.msg115240.html#msg115240 (http://forum.tinycorelinux.net/index.php/topic,18804.msg115240.html#msg115240)
May it be possible to have ruby.tcz rebuilt? (as python.tcz was rebuilt for previous issue)
Or should I build ruby from source to fix issue?
Thanks.
NOTE
I am using ruby 2.2.0 in fact.
2.0.0 shows up here because I tried to downgrade version to solve problem, without success.
-
bump
Is there a solution to this problem? I'm trying (using ruby-2.2.tcz, x86):
tc@box:~$ gem install metalsmith
ERROR: Loading command: install (LoadError)
/usr/local/lib/ruby/2.2.0/i686-linux/openssl.so: undefined symbol: SSLv2_method - /usr/local/lib/ruby/2.2.0/i686-linux/openssl.so
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
openssl.tcz and compiletc.tcz are installed
-
The ruby extension needs to be recompiled
-
In fact I ended up recompiling from source.
Using script below to configure options.
#!/bin/sh
CONFIGURE=/tmp/ruby-2.2.3/configure
$CONFIGURE --enable-shared \
--disable-install-doc \
--with-openssl-dir=/usr/local \
--with-readline-dir=/usr/local \
--with-gdbm-dir=/usr/local \
--with-tcl-dir=/usr/local \
--with-tk-dir=/usr/local \
CFLAGS="-Os -pipe" \
CXXFLAGS="-Os -pipe -fno-exceptions -fno-rtti"