Error code 모음/7. Dev Tools errors

[Ruby Error] /home/XXX/.rvm/scripts/rvm: No such file or directory

쟈누이 2021. 7. 26. 12:06
반응형

 

1. 에러 원인


에러의 원인은 잘 모르겠다. 하지만, 몇가지 거론되는 것으로는

 

1) root 계정이 아닌 일반 유저 계정으로 해서 그렇다

2) 다른 경로에 scripts 가 설치가 되어서 그렇다

3) 특정 버전의 rvm 을 설치해야 한다..

 

등등 이 있지만.. 기본적으로는 scripts 가 설치되지 않아 발생하는 에러인 것은 확실하다

 

 

 

 

2. 해결 방법


처음에 입력한 명령어는 

 

 $\curl -sSL https://get.rvm.io | bash -s stable -

였었는데.. 이렇게 했을때 위 에러가 발생을 해서..

 

stackover flow 와 rvm info 홈페이지를 참고해서 아래와 같이 명령어를 고쳐서 했다.

 

 $\curl -sSL https://get.rvm.io | bash -s stable

그랬더니 scripts 경로가 생성이 되었고 

source /home/ec2-user/.rvm/scripts/rvm

명령어 적용에 성공했다 ...

 

 

 

 

 

 

3. 참고 링크


https://stackoverflow.com/questions/26795891/bash-home-xxx-rvm-scripts-rvm-no-such-file-or-directory/42101941

 

bash: /home/XXX/.rvm/scripts/rvm: No such file or directory

I just walk-through with the installation of Ruby on Rails on Ubuntu using RVM. First I have logged in as the root user. Then I started with the following commands. \curl -sSL https://get.rvm.io |...

stackoverflow.com

 

https://rvm.io/rvm/install

 

RVM: Ruby Version Manager - Installing RVM

∞Installing RVM RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash, curl, gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.

rvm.io

 

 

반응형