Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rvm failing to install ruby #5262

Closed
yoursgayathri opened this issue Nov 3, 2022 · 0 comments
Closed

rvm failing to install ruby #5262

yoursgayathri opened this issue Nov 3, 2022 · 0 comments

Comments

@yoursgayathri
Copy link

yoursgayathri commented Nov 3, 2022

Description

rvm install ruby gives the following error. I tried different versions of ruby - everything fails.

Error running '__rvm_make -j1',
please read /usr/share/rvm/log/1667490802_ruby-2.5.5/make.log

There has been an error while running make. Halting the installation.

Steps to reproduce

I have ubuntu 22.04 installed on a VM on my local machine. I followed the steps to install rvm on ubuntu. Had some trouble with sudo apt-add-repository -y ppa:rael-gc/rvm . Then i disabled ipv6 which resolved that issue. Now I am trying to install ruby but it gives me the make_j1 error.

Actual behavior

I checked make.log which has a bunch on warnings . The only error i see is the following:

ossl.c:63:1: note: in expansion of macro ‘OSSL_IMPL_ARY2SK’
63 | OSSL_IMPL_ARY2SK(x509, X509, cX509Cert, DupX509CertPtr)
| ^~~~~~~~~~~~~~~~
ossl.c: In function ‘ossl_clear_error’:
ossl.c:311:9: error: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
311 | while ((e = ERR_get_error_line_data(&file, &line, &data, &flags))) {
| ^~~~~
In file included from ossl.h:21,
from ossl.c:10:
/usr/include/openssl/err.h:413:15: note: declared here
413 | unsigned long ERR_get_error_line_data(const char **file, int *line,
| ^~~~~~~~~~~~~~~~~~~~~~~
ossl.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
cc1: some warnings being treated as errors
make[2]: *** [Makefile:310: ossl.o] Error 1
make[2]: Leaving directory '/usr/share/rvm/src/ruby-2.5.5/ext/openssl'
make[1]: *** [exts.mk:212: ext/openssl/all] Error 2
make[1]: Leaving directory '/usr/share/rvm/src/ruby-2.5.5'
make: *** [uncommon.mk:240: build-ext] Error 2
++ return 2

Environment info

system:

system:
uname: "Linux gayathri-Virtual-Machine 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
name: "Ubuntu"
version: "22.04"
architecture: "x86_64"
bash: "/usr/bin/bash => GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
remote_path: "ubuntu/22.04/x86_64"

rvm:
version: "1.29.12 (manual)"
updated: "58 minutes 57 seconds ago"
path: "/usr/share/rvm"
autolibs: "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

homes:
gem: "not set"
ruby: "not set"

binaries:
ruby: ""
irb: ""
gem: ""
rake: ""

environment:
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/share/rvm/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
RUBYOPT: ""
gemset: ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant