1. Dependencies Required for installation
sudo apt-get updatesudo apt-get install Git-core Curl Zlib1g-dev build--dev libreadline-dev Libyaml-dev libsqlite3-dev sqlite3 Libxml2-dev libxslt1-dev Libcurl4-openssl-dev python-software-properties libffi- Dev
2、安装git sudo apt-get install git
3, http://stackoverflow.com/questions/26595620/how-to-install-ruby-2-1-4-on-ubuntu-14-04
Download the rbenv and set the environment variables:
git clone Https://github.com/rbenv/rbenv.< Span class= "PLN" >git ~/. ' export path= ' $HOME/.rbenv/bin: $PATH "' >>< Span class= "PLN" > ~/. "eval" $ (rbenv init-) "' >> ~/.
Download Ruby source settings Environment variables
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-buildecho ‘export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"‘ >> ~/.bashrcexec $SHELL
安装:
rbenv install 2.3.1rbenv global 2.3.1ruby -v
rbenv --》ruby envirement 大概是这两个单词的缩写,用来配置ruby的环境和安装的
Ubuntu Install Ruby