You are not logged in.

#1 2022-12-07 07:11:55

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

[Solved] Unable to update gem

I am getting this error when I run 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>'

I have  searched the forums but have not yet found a suitable answer.
Is this perhaps a new bug? OpenSSL is installed.
Any help will be appreciated.

Last edited by d_fajardo (2022-12-11 09:11:44)

Offline

#2 2022-12-11 09:11:26

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [Solved] Unable to update gem

I discovered another thread which simply mention doing gem uninstall openssl. Did that and everything back to normal.

Offline

Board footer

Powered by FluxBB