• Trouble installing rubies with rbenv


    Hello, I’m coming from Manjaro and though I would give Antergos a try. Installation went smoothly and everything was good until I tried installing rubies. Installed rbenv and ruby-build with yaourt. rbenv 1.0.0 and ruby-build 20160330.

    When trying to install any ruby I get the following error.

    installing bundle gems:       /home/vs/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications)
    /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require': /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/.ext/x86_64-linux/openssl.so: unde$ined symbol: SSLv3_method - /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/.ext/x86_64-linux/openssl.so (LoadError)
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/.ext/common/openssl.rb:17:in `<top (required)>'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/security.rb:11:in `<top (required)>'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/package.rb:43:in `<top (required)>'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/dependency_installer.rb:3:in `<top (required)>'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
            from /tmp/ruby-build.20160419191742.30313/ruby-2.2.4/lib/rubygems.rb:556:in `install'
            from ./tool/rbinstall.rb:722:in `block (2 levels) in <main>'
            from ./tool/rbinstall.rb:721:in `each'
            from ./tool/rbinstall.rb:721:in `block in <main>'
            from ./tool/rbinstall.rb:757:in `call'
            from ./tool/rbinstall.rb:757:in `block in <main>'
            from ./tool/rbinstall.rb:754:in `each'
            from ./tool/rbinstall.rb:754:in `<main>'
    uncommon.mk:246: recipe for target 'do-install-all' failed
    make: *** [do-install-all] Error 1
    

    After some searching I read the it is an OPENSSL library problem that the library installed does not support SSLv3_method

    On ruby 2.3 I also get this

    In file included from /usr/include/stdio.h:27:0,
                     from ./include/ruby/defines.h:26,
                     from ./include/ruby/ruby.h:29,
                     from ./version.c:12:
    /usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
     #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
        ^
    

    There is a path for the problem openssl-sslv3_method-undeclared however it does not seem to work after trying it I get the following

    Downloading ruby-2.2.4.tar.bz2...
    -> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.bz2
    Installing ruby-2.2.4...
    patching file ext/openssl/extconf.rb
    Hunk #1 FAILED at 104.
    1 out of 1 hunk FAILED -- saving rejects to file ext/openssl/extconf.rb.rej
    patching file ext/openssl/ossl_ssl.c
    Hunk #1 FAILED at 109.
    1 out of 1 hunk FAILED -- saving rejects to file ext/openssl/ossl_ssl.c.rej
    
    BUILD FAILED (Antergos Linux using ruby-build 20160330)
    
    Inspect or clean up the working tree at /tmp/ruby-build.20160419193734.22288
    Results logged to /tmp/ruby-build.20160419193734.22288.log
    

    Does anyone know a solution for this??
    Antergos has a really nice feel to it, but not being able to use rbenv is a nonoption for me…

    Thanks for your time :)

    Additional info:
    OpenSSL 1.0.2g 1 Mar 2016
    (Ask for full logs or anything else)

  • So, Welcome!
    Have you looked into the Arch wiki? Antergos does not change anything you get from Arch repos in any way (contrary to Manjaro).
    https://wiki.archlinux.org/index.php/ruby

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • Hello anarch, thanks for the fast reply, hope it is nice and sunny in Halkida, I am from corfu myself :)

    It is not a package issue rather a compile time issue. As I said above it has to do with the openssl.
    Do you know if I can replace my openssl package with a previous one, OpenSSL 1.0.2e 3 Dec 2015 should be good as it works on my current OS.

  • Pleased to meet you. (There s a message in your inbox):+1:

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

rbenv1 openssl3 ruby1 Posts 4Views 490
Log in to reply