Skip to content

Cannot install Ruby on macOS with ruby-build master HEAD #1972

Answered by jpr5
bitaxis asked this question in Build failures
Discussion options

You must be logged in to vote

Having a similar-looking problem, due to the following lines in ruby-build:

  # Put openssl.conf, certs, etc in ~/.rbenv/versions/*/openssl/ssl
  OPENSSLDIR="${OPENSSLDIR:-$OPENSSL_PREFIX_PATH/ssl}"

  # ....

  # Extract root certs from the system keychain in .pem format and rehash.
  local pem_file="$OPENSSLDIR/cert.pem"
  security find-certificate -a -p /Library/Keychains/System.keychain > "$pem_file"
  security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> "$pem_file"

$OPENSSLDIR doesn't exist, so the security find-certificate invocations fail.

There's a one-commit diff between master and the tag @bitaxis references, most relevant is:

@@ -1119,7 …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jpr5
Comment options

@eregon
Comment options

@mislav
Comment options

@eregon
Comment options

Answer selected by eregon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants
Converted from issue

This discussion was converted from issue #1971 on May 07, 2022 20:34.