From: "t3rcio (Tercio Oliveira)" Date: 2022-02-26T03:07:31+00:00 Subject: [ruby-core:107747] [Ruby master Bug#18602] OpenSSL is not available. Issue #18602 has been updated by t3rcio (Tercio Oliveira). I tried your suggestion: ``` You may want to use --with-openssl-include=/path/to/openssl/headers --with-openssl-lib=/path/to/openssl/lib, with values appropriate to your installation. ``` but it didn't work. After read the code at */opt/ruby-3.1.1/ext/openssl/extconf.rb* I ran the irb and tested the *headers("openssl/ssl.h")* and the *pkg_config("openssl")* and it both returns true; so it appears that the openssl and its libs and paths is ok. So, I decided to uninstall the ruby and install it again, with one difference: at this time I installed without *sudo* (in the first time I tried install it with sudo at /opt/ruby-3.1.1) at ~/Downloads/ruby-3.1.1, and it works! Now I have openssl support. But, unfortunately, I got another error as follow: After installed the gem rubygems-server I try the "gem server" command and the follow error is returned: ``` ERROR: Loading command: server (NameError) uninitialized constant Gem::Commands::ServerCommand::OptionParser OptionParser.accept :Port do |port| ^^^^^^^^^^^^ ERROR: While executing gem ... (NoMethodError) undefined method `deprecated?' for nil:NilClass cmd.deprecation_warning if cmd.deprecated? ^^^^^^^^^^^^ ``` Should I report another bug? Maybe with another description... ---------------------------------------- Bug #18602: OpenSSL is not available. https://bugs.ruby-lang.org/issues/18602#change-96673 * Author: t3rcio (Tercio Oliveira) * Status: Feedback * Priority: Normal * ruby -v: 3.1.1 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- The following exception: ``` ERROR: While executing gem ... (Gem::Exception) OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources ``` is triggered when try to install a gem. The system already have openssl and the libssl-dev installed. Openssll version: OpenSSL 1.1.1f 31 Mar 2020. OS: LinxMint 20.3. ---Files-------------------------------- out_configure_ruby311.txt (28.2 KB) mkmf.log (12.9 KB) make.out (8.72 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: