* [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available.
@ 2022-02-25 1:20 t3rcio (Tercio Oliveira)
2022-02-25 1:27 ` [ruby-core:107740] " jeremyevans0 (Jeremy Evans)
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: t3rcio (Tercio Oliveira) @ 2022-02-25 1:20 UTC (permalink / raw
To: ruby-core
Issue #18602 has been reported by t3rcio (Tercio Oliveira).
----------------------------------------
Bug #18602: OpenSSL is not available.
https://bugs.ruby-lang.org/issues/18602
* Author: t3rcio (Tercio Oliveira)
* Status: Open
* 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.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:107740] [Ruby master Bug#18602] OpenSSL is not available.
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
@ 2022-02-25 1:27 ` jeremyevans0 (Jeremy Evans)
2022-02-25 12:41 ` [ruby-core:107744] " t3rcio (Tercio Oliveira)
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2022-02-25 1:27 UTC (permalink / raw
To: ruby-core
Issue #18602 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Open to Feedback
Did you reinstall Ruby after installing openssl/libssl-dev? If so, how did you install Ruby? Can you post the configure environment and args, and upload the build log (output of configure/make) and `ext/openssl/mkmf.log`?
----------------------------------------
Bug #18602: OpenSSL is not available.
https://bugs.ruby-lang.org/issues/18602#change-96665
* 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.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:107744] [Ruby master Bug#18602] OpenSSL is not available.
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
2022-02-25 1:27 ` [ruby-core:107740] " jeremyevans0 (Jeremy Evans)
@ 2022-02-25 12:41 ` t3rcio (Tercio Oliveira)
2022-02-25 15:45 ` [ruby-core:107745] " jeremyevans0 (Jeremy Evans)
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: t3rcio (Tercio Oliveira) @ 2022-02-25 12:41 UTC (permalink / raw
To: ruby-core
Issue #18602 has been updated by t3rcio (Tercio Oliveira).
File make.out added
File mkmf.log added
File out_configure_ruby311.txt added
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Did you reinstall Ruby after installing openssl/libssl-dev? If so, how did you install Ruby? Can you post the configure environment and args, and upload the build log (output of configure/make) and `ext/openssl/mkmf.log`?
When I installed Ruby, my system already have the openssl. However, I tried to reinstall Ruby with the commands:
```
./configure --with-openssl-dir=/usr/bin/openssl
sudo make
sudo make install
```
----------------------------------------
Bug #18602: OpenSSL is not available.
https://bugs.ruby-lang.org/issues/18602#change-96669
* 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:107745] [Ruby master Bug#18602] OpenSSL is not available.
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
2022-02-25 1:27 ` [ruby-core:107740] " jeremyevans0 (Jeremy Evans)
2022-02-25 12:41 ` [ruby-core:107744] " t3rcio (Tercio Oliveira)
@ 2022-02-25 15:45 ` jeremyevans0 (Jeremy Evans)
2022-02-26 3:07 ` [ruby-core:107747] " t3rcio (Tercio Oliveira)
2022-02-26 4:27 ` [ruby-core:107748] " jeremyevans0 (Jeremy Evans)
4 siblings, 0 replies; 6+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2022-02-25 15:45 UTC (permalink / raw
To: ruby-core
Issue #18602 has been updated by jeremyevans0 (Jeremy Evans).
From your `mkmf.log`:
```
/opt/ruby-3.1.1/ext/openssl/extconf.rb:100: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
```
I see you attempted to specify it in the configure argument. However, it seems unlikely that `/usr/bin/openssl` is a directory. 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.
----------------------------------------
Bug #18602: OpenSSL is not available.
https://bugs.ruby-lang.org/issues/18602#change-96670
* 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:107747] [Ruby master Bug#18602] OpenSSL is not available.
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
` (2 preceding siblings ...)
2022-02-25 15:45 ` [ruby-core:107745] " jeremyevans0 (Jeremy Evans)
@ 2022-02-26 3:07 ` t3rcio (Tercio Oliveira)
2022-02-26 4:27 ` [ruby-core:107748] " jeremyevans0 (Jeremy Evans)
4 siblings, 0 replies; 6+ messages in thread
From: t3rcio (Tercio Oliveira) @ 2022-02-26 3:07 UTC (permalink / raw
To: ruby-core
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:107748] [Ruby master Bug#18602] OpenSSL is not available.
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
` (3 preceding siblings ...)
2022-02-26 3:07 ` [ruby-core:107747] " t3rcio (Tercio Oliveira)
@ 2022-02-26 4:27 ` jeremyevans0 (Jeremy Evans)
4 siblings, 0 replies; 6+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2022-02-26 4:27 UTC (permalink / raw
To: ruby-core
Issue #18602 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Feedback to Closed
t3rcio (Tercio Oliveira) wrote in #note-4:
> Now I have openssl support.
Great! So this issue can be closed.
> 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...
If you were going to report the bug, you would report it to the rubygems-server project. I checked and the bug has already been reported there: https://github.com/rubygems/rubygems-server/issues/1
----------------------------------------
Bug #18602: OpenSSL is not available.
https://bugs.ruby-lang.org/issues/18602#change-96674
* Author: t3rcio (Tercio Oliveira)
* Status: Closed
* 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-02-26 4:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-25 1:20 [ruby-core:107739] [Ruby master Bug#18602] OpenSSL is not available t3rcio (Tercio Oliveira)
2022-02-25 1:27 ` [ruby-core:107740] " jeremyevans0 (Jeremy Evans)
2022-02-25 12:41 ` [ruby-core:107744] " t3rcio (Tercio Oliveira)
2022-02-25 15:45 ` [ruby-core:107745] " jeremyevans0 (Jeremy Evans)
2022-02-26 3:07 ` [ruby-core:107747] " t3rcio (Tercio Oliveira)
2022-02-26 4:27 ` [ruby-core:107748] " jeremyevans0 (Jeremy Evans)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).