How do I install ruby 2.0.0 correctly on Ubuntu 12.04?

前端 未结 8 831
庸人自扰
庸人自扰 2020-12-12 10:54

I have successfully installed rvm, but when I run the following commands

sudo apt-get update

Or:

rvm install 2         


        
相关标签:
8条回答
  • 2020-12-12 11:28

    Although this answer was accepted, I would strongly recommend using rvm rather. I had nothing but trouble trying to install ruby without it. See e.g. this guide:

    https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm

    0 讨论(0)
  • 2020-12-12 11:29

    follow below steps

    sudo apt-get -y update
    sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
    cd /tmp
    wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz
    tar -xvzf ruby-2.0.0-p481.tar.gz
    cd ruby-2.0.0-p481/
    ./configure --prefix=/usr/local
    make
    sudo make install
    
    0 讨论(0)
提交回复
热议问题