Zey*_*nel 5 gnome ruby ubuntu rvm
我正在尝试按照此处的说明安装Discourse,但命令
# Use installed ruby as default
rvm use 2.0.0 --default
Run Code Online (Sandbox Code Playgroud)
结果如下:
discourse@ubuntu:~$ 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.
Run Code Online (Sandbox Code Playgroud)
我明白那个
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.
Run Code Online (Sandbox Code Playgroud)
如此处所述,但我无法访问 GUI,因为我正在通过 ssh 安装到 ubuntu 服务器。如何在 gnome 中更改该设置?
编辑
根据 mpapis 的回答,我跑了,rvm get stable --auto-dotfiles但我仍然遇到同样的错误。我包括下面的输出。这是否告诉我有什么要解决的?
discourse@ubuntu:/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!
Run Code Online (Sandbox Code Playgroud)
小智 5
这将起作用,手动将这些行添加到您的 ~/.bashrc 文件中
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)
跑步:
rvm get stable --auto-dotfiles
Run Code Online (Sandbox Code Playgroud)
确保您阅读了所有输出 - rvm 为您打印信息和警告,您可以修复任何无法自动修复的问题
| 归档时间: |
|
| 查看次数: |
13576 次 |
| 最近记录: |