Ubuntu Install Ruby

Source: Internet
Author: User
Tags git clone

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.