Tiny Core Extensions > TCE Q&A Forum

Ruby SSL issue => gem install not working

(1/1)

fred78800:
Issue discovered using gem install.

Can also be raised from irb :

--- Code: ---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>'

--- End code ---

Looks very similar to Python-SSL issue described recently : 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.

archieb0ld:
bump

Is there a solution to this problem? I'm trying (using ruby-2.2.tcz, x86):

--- Code: ---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
--- End code ---

openssl.tcz and compiletc.tcz are installed

Juanito:
The ruby extension needs to be recompiled

fred78800:
In fact I ended up recompiling from source.
Using script below to configure options.


--- Code: (bash) ---#!/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"

--- End code ---

Navigation

[0] Message Index

Go to full version