Skip to content

Commit 475bc8b

Browse files
author
givanse
committed
warn about enabling login shell in the terminal emulator
RVM does not work properly if it is run from terminal emulator that does not allow a login shell. The behaviour is easy to see by just trying to run: $ rvm use The scenario is well handled by RVM and instructions are given to the user. However, the rails install script encapsulates RVM and will never face a situation like this because, in line 16, the rvm script is being sourced. The shell used for installation will display correctly the version numbers for Ruby and Rails, but once it exits the configuration will be lost. I saw this behaviour in gnome-terminal, xterm and uxterm.
1 parent b0039d3 commit 475bc8b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rails-install-ubuntu.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ echo "If the versions match, everything is installed correctly. If the versions
4646
don't match or errors are shown, something went wrong with the automated process
4747
and we will help you do the installation the manual way at the event.
4848
49-
Congrats!"
49+
Congrats!
50+
51+
Make sure that all works well by running the application generator command:
52+
$ rails new railsgirls
53+
54+
If you encounter the message:
55+
The program 'rails' is currently not installed.
56+
57+
It is just a hiccup with the shell, solutions:
58+
$ source ~/.rvm/scripts/rvm
59+
Allow login shell, example http://rvm.io/integration/gnome-terminal/"

0 commit comments

Comments
 (0)