RVM and Parallella: What a Difference a Shell Makes21 Jul 2014
linaro-nano:~> rvm list rvm: Command not found. linaro-nano:~>
rvm: Command not found. Fortunately, Zach Briggs and I were pairing at a joint OpenHack - ChicagoRuby event when the problem occurred. Zach is an ideal pairing partner; troubleshooting was smooth because he was there. Time to investigate.
After a few experiments, we discovered that we could run RVM by explicitly specifying the path to the executable:
linaro-nano:~> ~/.rvm/bin/rvm list rvm rubies ruby-2.0.0-p481 [ armv7l ] # Default ruby not set. Try 'rvm alias create default <ruby>'. # => - current # =* - current && default # * - default linaro-nano:~>
Therefore, it appeared that the Ubuntu/Linux
$PATH variable was being ignored. Google led us to consider the shell in use on the Parallella.
Which Shell Is In Use?
The shell is just a program that lets humans talk to the Linux operating system through a command line interface. Several shell programs exist. Linux users tend to prefer one shell or another. The
$SHELL environmental variable points to the one in use.
linaro-nano:~> echo $SHELL /bin/tcsh linaro-nano:~>
tcsh was the current Parallella shell. I’m more accustomed to
bash. Could RVM prefer
bash too? We changed one line of
/etc/passwd to tell the Parallella to start with
bash instead of
tcsh and rebooted the Parallella.
linaro-nano:~> echo $SHELL /bin/bash linaro-nano:~>
…and now RVM works normally.
linaro-nano:~> rvm list rvm rubies ruby-2.0.0-p481 [ armv7l ] # Default ruby not set. Try 'rvm alias create default <ruby>'. # => - current # =* - current && default # * - default linaro-nano:~>
Original Plan: Rubinius
Did I mention that we originally planned to install Rubinius on the Parallella? Where there are goals, there are yaks waiting to be shaved!