You are not logged in.

#1 2022-11-06 17:52:59

danSman
Member
Registered: 2017-12-21
Posts: 47

[SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

❯ gem update
ERROR:  While executing gem ... (Gem::Exception)
    OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
        /usr/lib/ruby/3.0.0/rubygems/request.rb:47:in `configure_connection_for_https'
        /usr/lib/ruby/3.0.0/rubygems/request/https_pool.rb:6:in `setup_connection'
        /usr/lib/ruby/3.0.0/rubygems/request/http_pool.rb:39:in `make_connection'
        /usr/lib/ruby/3.0.0/rubygems/request/http_pool.rb:20:in `checkout'
        /usr/lib/ruby/3.0.0/rubygems/request.rb:129:in `connection_for'
        /usr/lib/ruby/3.0.0/rubygems/request.rb:188:in `perform_request'
        /usr/lib/ruby/3.0.0/rubygems/request.rb:154:in `fetch'
        /usr/lib/ruby/3.0.0/rubygems/remote_fetcher.rb:309:in `request'
        /usr/lib/ruby/3.0.0/rubygems/remote_fetcher.rb:209:in `fetch_http'
        /usr/lib/ruby/3.0.0/rubygems/remote_fetcher.rb:248:in `fetch_path'
        /usr/lib/ruby/3.0.0/rubygems/remote_fetcher.rb:285:in `cache_update_path'
        /usr/lib/ruby/3.0.0/rubygems/source.rb:187:in `load_specs'
        /usr/lib/ruby/3.0.0/rubygems/spec_fetcher.rb:256:in `tuples_for'
        /usr/lib/ruby/3.0.0/rubygems/spec_fetcher.rb:222:in `block in available_specs'
        /usr/lib/ruby/3.0.0/rubygems/source_list.rb:94:in `each'
        /usr/lib/ruby/3.0.0/rubygems/source_list.rb:94:in `each_source'
        /usr/lib/ruby/3.0.0/rubygems/spec_fetcher.rb:216:in `available_specs'
        /usr/lib/ruby/3.0.0/rubygems/spec_fetcher.rb:90:in `search_for_dependency'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:142:in `fetch_remote_gems'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:167:in `highest_remote_name_tuple'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:307:in `block in which_to_update'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:303:in `each'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:303:in `which_to_update'
        /usr/lib/ruby/3.0.0/rubygems/commands/update_command.rb:102:in `execute'
        /usr/lib/ruby/3.0.0/rubygems/command.rb:323:in `invoke_with_build_args'
        /usr/lib/ruby/3.0.0/rubygems/command_manager.rb:185:in `process_args'
        /usr/lib/ruby/3.0.0/rubygems/command_manager.rb:149:in `run'
        /usr/lib/ruby/3.0.0/rubygems/gem_runner.rb:51:in `run'
        /usr/bin/gem:13:in `<main>'

Is it not build on openssl 3? But actually it looks like https://github.com/archlinux/svntogit-c … ruby/trunk. Or does the package needs to be "moved" to

/usr/lib/ruby/3.0.4/

instead of

/usr/lib/ruby/3.0.0/

?

Last edited by danSman (2022-11-07 18:56:46)

Offline

#2 2022-11-06 18:39:41

coddiw0mple
Member
From: Mumbai, India
Registered: 2021-03-13
Posts: 10

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

There is always the openssl-1.1 package still available in arch core repo, try that maybe?


u/YodaTheSexyCummunist

Offline

#3 2022-11-06 18:55:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

You linked to the update for the ruby package, but your question is about content from the rubygems package which has not been rebuilt since the openssl update.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2022-11-06 19:18:56

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

gem update
Updating installed gems
Updating bundler
Fetching bundler-2.3.25.gem
Successfully installed bundler-2.3.25
Parsing documentation for bundler-2.3.25
Installing ri documentation for bundler-2.3.25
Done installing documentation for bundler after 0 seconds
Parsing documentation for bundler-2.3.25
Done installing documentation for bundler after 0 seconds
Updating debug
Fetching debug-1.6.3.gem
Building native extensions. This could take a while...
Successfully installed debug-1.6.3
Parsing documentation for debug-1.6.3
Installing ri documentation for debug-1.6.3
Done installing documentation for debug after 0 seconds
Parsing documentation for debug-1.6.3
Done installing documentation for debug after 0 seconds
Updating erb
Fetching erb-3.0.0.gem
Successfully installed erb-3.0.0
Parsing documentation for erb-3.0.0
Installing ri documentation for erb-3.0.0
Done installing documentation for erb after 0 seconds
Parsing documentation for erb-3.0.0
Done installing documentation for erb after 0 seconds
Updating matrix
Fetching matrix-0.4.2.gem
Successfully installed matrix-0.4.2
Parsing documentation for matrix-0.4.2
Installing ri documentation for matrix-0.4.2
Done installing documentation for matrix after 0 seconds
Parsing documentation for matrix-0.4.2
Done installing documentation for matrix after 0 seconds
Updating net-ftp
Fetching net-ftp-0.2.0.gem
Successfully installed net-ftp-0.2.0
Parsing documentation for net-ftp-0.2.0
Installing ri documentation for net-ftp-0.2.0
Done installing documentation for net-ftp after 0 seconds
Parsing documentation for net-ftp-0.2.0
Done installing documentation for net-ftp after 0 seconds
Updating net-http
Fetching net-http-0.3.0.gem
Successfully installed net-http-0.3.0
Parsing documentation for net-http-0.3.0
Installing ri documentation for net-http-0.3.0
Done installing documentation for net-http after 0 seconds
Parsing documentation for net-http-0.3.0
Done installing documentation for net-http after 0 seconds
Updating net-imap
Fetching net-imap-0.3.1.gem
Successfully installed net-imap-0.3.1
Parsing documentation for net-imap-0.3.1
Installing ri documentation for net-imap-0.3.1
Done installing documentation for net-imap after 0 seconds
Parsing documentation for net-imap-0.3.1
Done installing documentation for net-imap after 0 seconds
Updating net-pop
Fetching net-pop-0.1.2.gem
Successfully installed net-pop-0.1.2
Parsing documentation for net-pop-0.1.2
Installing ri documentation for net-pop-0.1.2
Done installing documentation for net-pop after 0 seconds
Parsing documentation for net-pop-0.1.2
Done installing documentation for net-pop after 0 seconds
Updating net-protocol
Fetching net-protocol-0.1.3.gem
Successfully installed net-protocol-0.1.3
Parsing documentation for net-protocol-0.1.3
Installing ri documentation for net-protocol-0.1.3
Done installing documentation for net-protocol after 0 seconds
Parsing documentation for net-protocol-0.1.3
Done installing documentation for net-protocol after 0 seconds
Updating net-smtp
Fetching net-smtp-0.3.3.gem
Successfully installed net-smtp-0.3.3
Parsing documentation for net-smtp-0.3.3
Installing ri documentation for net-smtp-0.3.3
Done installing documentation for net-smtp after 0 seconds
Parsing documentation for net-smtp-0.3.3
Done installing documentation for net-smtp after 0 seconds
Updating nkf
Fetching nkf-0.1.1.gem
Successfully installed nkf-0.1.1
Parsing documentation for nkf-0.1.1
Installing ri documentation for nkf-0.1.1
Done installing documentation for nkf after 0 seconds
Parsing documentation for nkf-0.1.1
Done installing documentation for nkf after 0 seconds
Updating openssl
Fetching openssl-3.0.1.gem
Building native extensions. This could take a while...
Successfully installed openssl-3.0.1
Parsing documentation for openssl-3.0.1
Installing ri documentation for openssl-3.0.1
Done installing documentation for openssl after 1 seconds
Parsing documentation for openssl-3.0.1
Done installing documentation for openssl after 0 seconds
Updating optparse
Fetching optparse-0.2.0.gem
Successfully installed optparse-0.2.0
Parsing documentation for optparse-0.2.0
Installing ri documentation for optparse-0.2.0
Done installing documentation for optparse after 0 seconds
Parsing documentation for optparse-0.2.0
Done installing documentation for optparse after 0 seconds
Updating ostruct
Fetching ostruct-0.5.5.gem
Successfully installed ostruct-0.5.5
Parsing documentation for ostruct-0.5.5
Installing ri documentation for ostruct-0.5.5
Done installing documentation for ostruct after 0 seconds
Parsing documentation for ostruct-0.5.5
Done installing documentation for ostruct after 0 seconds
Updating pathname
Fetching pathname-0.2.0.gem
Building native extensions. This could take a while...
Successfully installed pathname-0.2.0
Parsing documentation for pathname-0.2.0
Installing ri documentation for pathname-0.2.0
Done installing documentation for pathname after 0 seconds
Parsing documentation for pathname-0.2.0
Done installing documentation for pathname after 0 seconds
Updating pp
Fetching pp-0.3.0.gem
Successfully installed pp-0.3.0
Parsing documentation for pp-0.3.0
Installing ri documentation for pp-0.3.0
Done installing documentation for pp after 0 seconds
Parsing documentation for pp-0.3.0
Done installing documentation for pp after 0 seconds
Updating readline
Fetching readline-0.0.3.gem
+---------------------------------------------------------------------------+
| This is just a loader for "readline". If Ruby has the "readline-ext" gem  |
| that is a native extension, this gem will load it. If Ruby does not have  |
| the "readline-ext" gem this gem will load "reline", a library that is     |
| compatible with the "readline-ext" gem and implemented in pure Ruby.      |
|                                                                           |
| If you intend to use GNU Readline by `require 'readline'`, please install |
| the "readline-ext" gem.                                                   |
+---------------------------------------------------------------------------+
Successfully installed readline-0.0.3
Parsing documentation for readline-0.0.3
Installing ri documentation for readline-0.0.3
Done installing documentation for readline after 0 seconds
Parsing documentation for readline-0.0.3
Done installing documentation for readline after 0 seconds
Updating readline-ext
Fetching readline-ext-0.1.4.gem
Building native extensions. This could take a while...
Successfully installed readline-ext-0.1.4
Parsing documentation for readline-ext-0.1.4
Installing ri documentation for readline-ext-0.1.4
Done installing documentation for readline-ext after 0 seconds
Parsing documentation for readline-ext-0.1.4
Done installing documentation for readline-ext after 0 seconds
Updating securerandom
Fetching securerandom-0.2.0.gem
Successfully installed securerandom-0.2.0
Parsing documentation for securerandom-0.2.0
Installing ri documentation for securerandom-0.2.0
Done installing documentation for securerandom after 0 seconds
Parsing documentation for securerandom-0.2.0
Done installing documentation for securerandom after 0 seconds
Updating set
Fetching set-1.0.3.gem
Successfully installed set-1.0.3
Parsing documentation for set-1.0.3
Installing ri documentation for set-1.0.3
Done installing documentation for set after 0 seconds
Parsing documentation for set-1.0.3
Done installing documentation for set after 0 seconds
Updating strscan
Fetching strscan-3.0.4.gem
Building native extensions. This could take a while...
Successfully installed strscan-3.0.4
Parsing documentation for strscan-3.0.4
Installing ri documentation for strscan-3.0.4
Done installing documentation for strscan after 0 seconds
Parsing documentation for strscan-3.0.4
Done installing documentation for strscan after 0 seconds
Updating tempfile
Fetching tempfile-0.1.2.gem
Successfully installed tempfile-0.1.2
Parsing documentation for tempfile-0.1.2
Installing ri documentation for tempfile-0.1.2
Done installing documentation for tempfile after 0 seconds
Parsing documentation for tempfile-0.1.2
Done installing documentation for tempfile after 0 seconds
Updating timeout
Fetching timeout-0.3.0.gem
Successfully installed timeout-0.3.0
Parsing documentation for timeout-0.3.0
Installing ri documentation for timeout-0.3.0
Done installing documentation for timeout after 0 seconds
Parsing documentation for timeout-0.3.0
Done installing documentation for timeout after 0 seconds
Updating un
Fetching un-0.2.0.gem
Successfully installed un-0.2.0
Parsing documentation for un-0.2.0
Installing ri documentation for un-0.2.0
Done installing documentation for un after 0 seconds
Parsing documentation for un-0.2.0
Done installing documentation for un after 0 seconds
Updating yaml
Fetching yaml-0.2.0.gem
Successfully installed yaml-0.2.0
Parsing documentation for yaml-0.2.0
Installing ri documentation for yaml-0.2.0
Done installing documentation for yaml after 0 seconds
Parsing documentation for yaml-0.2.0
Done installing documentation for yaml after 0 seconds
Updating zlib
Fetching zlib-2.1.1.gem
Building native extensions. This could take a while...
Successfully installed zlib-2.1.1
Parsing documentation for zlib-2.1.1
Installing ri documentation for zlib-2.1.1
Done installing documentation for zlib after 0 seconds
Parsing documentation for zlib-2.1.1
Done installing documentation for zlib after 0 seconds
Gems updated: bundler debug erb matrix net-ftp net-http net-imap net-pop net-protocol net-smtp nkf openssl optparse ostruct pathname pp readline readline-ext securerandom set strscan tempfile timeout un yaml zlib

Do you have a local version of the openssl gem installed that is linked to OpenSSL 1.1?

Offline

#5 2022-11-07 08:16:23

danSman
Member
Registered: 2017-12-21
Posts: 47

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

@coddiw0mple
I try to follow the Arch updates when possible, but if it doesn't work with Openssl 3 for some reason, I would try Openssl 1 but for now I would like to stick to it.

@Trilby
That is right. That's the only difference I've seen so far.

@loqs
I don't really use Ruby. I only installed it for gollum (https://github.com/gollum/gollum), which I use for my personal stuff.  So basically I just followed the installation process there and that's it. Since yesterday's Arch update it doesn't work anymore and I thought it might be related to the openssl update but I don't know. Seems like.

Offline

#6 2022-11-07 13:38:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

Is there any reason you aren't using the gollum package in the AUR?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2022-11-07 18:18:56

danSman
Member
Registered: 2017-12-21
Posts: 47

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

I installed it a few years back. So probably it wasn't there. And it's not up 2 date anyway.

Offline

#8 2022-11-07 18:25:09

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

Have you tried removing any locally built version of the openssl gem?

gem uninstall openssl

Offline

#9 2022-11-07 18:55:54

danSman
Member
Registered: 2017-12-21
Posts: 47

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

I wasn't able to use gem at all. Always the same issue.
But I solved it now. I moved

~/.local/share/gem

to

~/.local/share/gem.hold

(or wherever your .gem folder is) and installed gollum again.

Offline

#10 2022-11-14 00:19:24

Traap
Member
Registered: 2019-05-11
Posts: 1

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

I took an aggressive approach to solving:

```bash
yay -S rbenv ruby-build
yay --clean
rm -rf ~/.rbenv
yay -S --rebuildall --redownload --noconfirm rbenv ruby-build
eval "$(rbenv init -)"
rbenv install 3.1.2
rbenv global 3.1.2
gem install openssl
```

Success~

Offline

#11 2023-03-28 13:41:43

varjao
Member
Registered: 2023-03-28
Posts: 1

Re: [SOLVED] Ruby - OpenSSL is not available. Install OpenSSL and rebuild

I've faced the same problem and, in my case, the problem seems associated with ruby version 3.0.5. After update ruby to version 3.2.0, the trouble was solved.

Offline

Board footer

Powered by FluxBB