Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install ruby 2.0.0 correctly on Ubuntu 12.04?

Tags:

ruby

ubuntu

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

sudo apt-get update 

Or:

rvm install 2.0.0 

I have the following errors:

W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/source/Sources  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/cheleb/blender-svn/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/source/Sources  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/ferramroberto/oneiric/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found 

How can I fix these errors?

like image 457
Kashiftufail Avatar asked Apr 25 '13 19:04

Kashiftufail


People also ask

How do I install a specific version of Ruby on Linux?

Use the secure installation method. Read the installation instructions — you probably want the single-user configuration. Use rvm list known to list available Rubies and then run rvm install x.x.x to install a specific version. Use rvm use x.x.x --default to change your default Ruby.

How do I change Ruby version in Ubuntu?

To switch between Ruby versions, run rvm use <version_number> (for example, rvm use 2.7.

How do you check Ruby is installed or not in Ubuntu?

Run the command which ruby. If you see a path such as /usr/bin/ruby, Ruby is installed. If you don't see any response or get an error message, Ruby is not installed. To verify that you have a current version of Ruby, run the command ruby -v.


1 Answers

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 
like image 139
Pravin Mishra Avatar answered Sep 27 '22 23:09

Pravin Mishra