how to install ruby 2.0 in debian 6?

debian, ruby

Solution

If it's a server, you may want to take a look at RVM (https://rvm.io/). It would make your install as simple as :

curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled

Problem

I want o install ruby 2.0 and I have followed many tutorials, but none of them works, and the defaul repo `apt-get install ruby` brings me the 1.8 version (and due is debian has restrictions to update it if is not through the repo) any way to do it? Ive tried this way ``` cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz tar xjf ruby.xxx.tar.bz2 cd rubyxxx ./configure --enable-shared make make install ``` and just that, I get error on the next steps, when I make a ruby -version I get this ``` -bash: /usr/bin/ruby: No such file or directory ``` the end of the tuto install ``` cd ext/openssl/ ruby extconf.rb make install cd ../readline/ ruby extconf.rb make install gem update --system ``` any idea how to do this in debian 6? thanks

Original source

Related problems