我想安装ruby 2.0使用
sudo apt-get install ruby2.0@H_502_3@但是没有可用的ruby2.0包 @H_502_3@我想安装它使用apt-get安装相同像ruby 1.9.1 @H_502_3@有什么建议么?
sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz tar -xvzf ruby-2.0.0-p451.tar.gz cd ruby-2.0.0-p451/ ./configure --prefix=/usr/local make sudo make install@H_502_3@从这里How do I install ruby 2.0.0 correctly on Ubuntu 12.04? @H_502_3@更新 @H_502_3@为ruby 2.1.5
sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz tar -xvzf ruby-2.1.5.tar.gz cd ruby-2.1.5/ ./configure --prefix=/usr/local make sudo make install@H_502_3@如果你仍然看到一个更老的红宝石检查你的符号链接ls -la / usr / bin / ruby从hector