I'm trying to setup ruby on rails environment on termux on android. I want to use 2.1.10 ruby
. All I found was apt install ruby-dev
or pkg install ruby-dev
which installs the latest version of ruby. any suggestions?
You can install rvm.
0. Recomendation: install tmux and zsh, and change zsh as default shell. Oh my Zsh worked. Powerline fonts too (by install termux-style script)
Let's install rvm:
apt install curl gawk tar
curl -sSL https://get.rvm.io | bash -s stable
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
to your ~/.bashrc or ~/.zshrc filevi ~/.rvm/scripts/rvm
case "`uname` in
(CYGWIN*|MINGW*)
... etc ...
Just replace the 3 initialization variable __shell_name strings with this:
__shell_name="gawk 'BEGIN{RS=\"\"}; NR==1{print; exit
}' /proc/$$/cmdline | tr - '\0'" ;;
RVM working with termux: https://github.com/rvm/rvm/issues/4734