Skip to content

Commit

Permalink
Use OpenSSL 1.1 until OpenSSL for Ruby will support OpenSSL 3.0
Browse files Browse the repository at this point in the history
It seems to be still in preparation at the moment.

- ruby/openssl#369

```
$ brew info [email protected]

[email protected]: stable 1.1.1l (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/[email protected]/1.1.1l_1 (8,073 files, 18.5MB)
  Poured from bottle on 2021-10-09 at 17:50:03
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected]
License: OpenSSL
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/[email protected]/certs

and run
  /usr/local/opt/[email protected]/bin/c_rehash

[email protected] is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have [email protected] first in your PATH, run:
  echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

For compilers to find [email protected] you may need to set:
  export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
  export CPPFLAGS="-I/usr/local/opt/[email protected]/include"

For pkg-config to find [email protected] you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"

==> Analytics
install: 1,034,525 (30 days), 2,791,466 (90 days), 9,665,014 (365 days)
install-on-request: 40,532 (30 days), 166,402 (90 days), 971,361 (365 days)
build-error: 0 (30 days)
```
  • Loading branch information
machupicchubeta committed Oct 23, 2021
1 parent cee3ea9 commit f9bf2d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bash/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ export GREP_OPTIONS='--color=auto'

export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/

export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl@1.1"
2 changes: 1 addition & 1 deletion .zsh/variables.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export GREP_OPTIONS='--color=auto'

export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/

export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl@1.1"
1 change: 1 addition & 0 deletions bin/brewfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ brew install cfn-lint

# For Ruby
brew install openssl
brew install [email protected]
brew install readline
brew install ruby-build
brew install rbenv
Expand Down

0 comments on commit f9bf2d6

Please sign in to comment.