rvm / ubuntu_rvm

Ubuntu package for RVM
https://launchpad.net/~rael-gc/+archive/ubuntu/rvm
Apache License 2.0
694 stars 84 forks source link

Absent `~/.rvm` on Ubuntu 22.04 LTS #71

Closed OleStan closed 1 year ago

OleStan commented 2 years ago

Description

I have installed rvm 1.29.12 on Ubuntu 22.04 LTS, and realize that there is no ~/.rvm. But I can call rvm in terminal and download ruby versions

Steps to reproduce

  1. Install rvm
    sudo apt-add-repository -y ppa:rael-gc/rvm
    sudo apt-get update
    sudo apt-get install rvm
    sudo usermod -a -G rvm $USER
    echo 'source "/etc/profile.d/rvm.sh"' >> ~/.bashrc
  2. Install minimal Ruby for Ubuntu 22.04
    rvm install 3.1.0
  3. Check user directory cd ~/.rvm
    1. Get output that -bash: cd: /home/use/.rvm: No such file or directory

Expected behavior

~/.rvm present and I can run capistrano task

Actual behavior

~$ cd ~/.rvm
-bash: cd: /home/deployer/.rvm: No such file or directory

Environment info

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS" rvm 1.29.12 (manual) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

jpriollaud commented 1 year ago

@OleStan This flavor of RVM uses mixed-mode and puts the rvm binaries in /usr/share/rvm instead. See the very top of the Readme https://github.com/rvm/ubuntu_rvm#rvm-package-for-ubuntu

Some have apparently decided to symlink between ~/.rvm and /usr/share but it's probably not worth it. Just update your paths everywhere. This package heavily reduces some of the craziness of RVM vanilla.