RVM is not working over SSH

前端 未结 10 1555
时光取名叫无心
时光取名叫无心 2020-12-25 13:05

RVM is not working over SSH.

At the command-line:

leifg@host:~$ which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby

Connected

10条回答
  •  -上瘾入骨i
    2020-12-25 13:54

    Mentioned solutions work certainly fine, but mine was to run

    source /usr/local/rvm/environments/@
    

    at the start of the remote ssh call. Something like:

    ssh -l   "source /usr/local/rvm/environments/@ ; "
    

提交回复
热议问题