Skip to content

Can't install another version of ruby #1709

@iharkatkavets

Description

@iharkatkavets

OS:
macOS BigSur 11.1 (20C69)
rbenv 1.1.2-40-g62d7798

I run command to install new version of ruby '$ rbenv install 2.7.2' and I got error

$ rbenv install 2.7.2
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/igork/.rbenv/versions/2.7.2

Downloading ruby-2.7.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.bz2
Installing ruby-2.7.2...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 11.1 using ruby-build 20201225-4-g02ce13c)

Inspect or clean up the working tree at /var/folders/yq/0qgh9s2s3mv9mj8qcr1tndk00000gn/T/ruby-build.20210117184954.54049.ZDBDN6
Results logged to /var/folders/yq/0qgh9s2s3mv9mj8qcr1tndk00000gn/T/ruby-build.20210117184954.54049.log

Last 10 log lines:
linking shared-object openssl.bundle
linking shared-object ripper.bundle
./revision.h unchanged
linking ruby
make[1]: Nothing to be done for `note'.
Generating RDoc documentation
dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
Referenced from: /var/folders/yq/0qgh9s2s3mv9mj8qcr1tndk00000gn/T/ruby-build.20210117184954.54049.ZDBDN6/ruby-2.7.2/ruby
Reason: image not found
make: *** [rdoc] Abort trap: 6

Output from log file:

raddrinfo.c:442:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32]
return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
~~~~~~~~~~~ ^~~~~~~
raddrinfo.c:442:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32]
return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
~~~~~~~~~~~ ^~~~~~~
linking shared-object json/ext/parser.bundle
compiling ifaddr.c
linking shared-object date_core.bundle
compiling ossl_pkey_ec.c
compiling getaddrinfo.c
compiling ossl_pkey_rsa.c
linking shared-object json/ext/generator.bundle
compiling getnameinfo.c
getaddrinfo.c:410:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
} else if (strcmp(sp->s_proto, "tcp") == 0) {
^
installing default socket libraries
compiling ossl_rand.c
compiling ossl_ssl.c
compiling ossl_ssl_session.c
compiling ossl_x509.c
compiling ossl_x509attr.c
compiling ossl_x509cert.c
compiling ossl_x509crl.c
1 warning generated.
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_x509req.c
compiling ossl_x509revoked.c
compiling ossl_x509store.c
2 warnings generated.
linking shared-object socket.bundle
linking shared-object openssl.bundle
linking shared-object ripper.bundle
./revision.h unchanged
linking ruby
make[1]: Nothing to be done for `note'.
Generating RDoc documentation
dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
Referenced from: /var/folders/yq/0qgh9s2s3mv9mj8qcr1tndk00000gn/T/ruby-build.20210117184954.54049.ZDBDN6/ruby-2.7.2/ruby
Reason: image not found
make: *** [rdoc] Abort trap: 6

Don't know how to fix the issue. Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions