描述

无法在Ubuntu 15~22.04.1上安装Ruby 3.0.2

复制的步骤

  1. 运行RVM安装"3.0.2"

预期行为

已安装Ruby

实际行为

运行‘__rvm_make-j4’时出错,

image

Debug mode: make.log.

环境信息

image

rvm info

`系统:

系统: Uname:"Linux Cas12-GomeBook-Pro 6.5.0-15-Generic#15~22.04.1-Ubuntu SMP Preempt_Dynamic Fri Jan 12 18:54:30 UTC 2 x86_64 GNU/Linux" 姓名:"Ubuntu" 版本:"22.04" 架构:"x86_64" Bash:"/usr/bin/bash=>GNU bash,版本5.1.16(1)-Release(x86_64-PC-Linux-GNU)" Zsh:"/usr/bin/zsh=>zsh 5.8.1(x86_64-ubuntu-linux-gnu)" 远程路径:"ubuntu/22.04/x86_64"

RVM: 版本:"1.29.12(手册)" 更新:《51分1秒前》 路径:"/usr/share/rvm" Autolibs:"[4]允许RVM使用包管理器(如果找到),安装缺少的依赖项,安装包管理器(仅限OS X)."

家庭: Ruby : "未设置" Ruby : "未设置"

二进制文件: Ruby:"/usr/bin/ruby" Irb:"/usr/bin/irb" Gem:"/usr/bin/gem" Rake:"/usr/bin/rake"

环境: 路径: "/home/cas12/istio-1.20.1/bin/:/root/go/src/k8s.io/kubernetes/third_party/etcd:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/root/bin:/usr/local/go/bin:/root/kubectl-plugins:/home/cas12/istio-1.20.1/bin:/root/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fancy-ctrl-z:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gnu-utils:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/yarn:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gh:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/terraform:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/oc:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/npm:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/node:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/golang:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/systemd:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/root/.antigen/bundles/zsh-users/zsh-autosuggestions:/root/.antigen/bundles/popstas/zsh-command-time:/root/.antigen/bundles/urbainvaes/fzf-marks:/root/.antigen/bundles/ytet5uy4/fzf-widgets:/root/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/usr/share/rvm/bin" GEM_HOME: "" GEM_PATH: "" MY_RUBY_HOME:"" IRBRC: "" 鲁比奥普: "" Ruby : "" "

推荐答案

正如您在make.log中看到的,所有错误都与OpenSSL链接有关.这可能是因为您的系统上安装了OpenSSL>;=3.0,而Ruby 3.0不支持.您需要安装openssl-1.1.1,或使用ruby>;=3.1

Ruby-on-rails相关问答推荐

使用Hotwire/Turbo的Rails在链接悬停时获取请求

删除链接不起作用,重定向 echo 示 Ruby

Grape api (rails) - 未初始化常量 Endpoints::TodoAPI (NameError)

GroupingError:错误:列必须出现在 GROUP BY 子句中或在聚合函数中使用

Rails:序列化数据库中的对象?

撬Ruby 如何重新加载?

Rails 中页面视图的简单计数器

如何避免 RSpec 3.0 中 stub_chain 的弃用警告?

在 Nokogiri 中获取属性值以提取链接 URL

从控制器中删除 Cookie

Rails 4 查找没有子元素的父母

如何在特定时区(最好是我的应用程序的默认时区,而不是 UTC)中创建新的 DateTime 对象?

rails structure.sql和schema.rb有什么区别

我应该将全局共享部分模板放在哪个文件夹中?

登录delay_job?

减go Ruby 中的日期并以分钟为单位得到差异

如何为 rspec 设置 ENV 变量?

如果多态关联的类型列不指向 STI 的基本模型,为什么多态关联对 STI 不起作用?

ActionMailer 在开发 Rails 4 中不发送邮件

Rails:为什么 with_exclusive_scope 受保护?关于如何使用它的任何好的做法?