Eu estou tentando instalar discurso como explicado aqui mas o comando
# Use installed Ruby as default
rvm use 2.0.0 --default
resultados Neste:
[email protected]:~$ rvm use 2.0.0 --default
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login Shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
Eu entendi aquilo
For RVM to work properly, you have to set the 'Run command as login Shell' checkbox on the Title and Command tab inside of gnome-terminal's Settings page.
como explicado aqui Mas eu não tenho acesso a GUI, porque estou instalando através do SSH para o servidor Ubuntu. Como posso mudar essa configuração no GNOME?
[~ # ~] editar [~ # ~]
conforme a resposta do MPAPIS eu corri rvm get stable --auto-dotfiles
Mas eu ainda recebo o mesmo erro. Eu incluo a saída abaixo. Isso me fala sobre qualquer coisa para consertar?
[email protected]:/var/www/discourse$ rvm get stable --auto-dotfiles
Downloading https://get.rvm.io
Turning on auto dotfiles mode.
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
Upgrading the RVM installation in /home/discourse/.rvm/
Removing rvm PATH line from /home/discourse/.profile /home/discourse/.bashrc /home/discourse/.zshrc.
Adding rvm PATH line to /home/discourse/.profile /home/discourse/.bashrc /home/discourse/.zshrc.
Removing rvm loading line from /home/discourse/.profile /home/discourse/.zlogin.
Adding rvm loading line to /home/discourse/.bash_profile /home/discourse/.zlogin.
Upgrade of RVM in /home/discourse/.rvm/ is complete.
# discourse,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://Twitter.com/rvm_io
Help RVM 2.0: https://www.bountysource.com/fundraisers/489-rvm-2-0
Upgrade Notes:
* No new notes to display.
RVM reloaded!
Isso funcionará, adicione essas linhas ao seu arquivo ~/.bashrc manualmente
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
corre:
rvm get stable --auto-dotfiles
certifique-se de ler toda a saída - RVM imprime informações e avisos para você que você pode corrigir quaisquer problemas que não possam ser corrigidos automaticamente
Em '.Profile' comentar (ou excluir) export PATH="$PATH:$HOME/.rvm/bin"
Porque já está em arquivo '.bashrc' e mover [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Para '.bashrc'.