Answer the question
In order to leave comments, you need to log in
Problem with ruby in ubuntu. What to do?
Hi all!
One day I needed to install ruby 2.xx and I came across an answer on a forum.
I had to enter these commands into the terminal to install ruby 2.0.0:
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
Answer the question
In order to leave comments, you need to log in
Do not execute those commands, the meaning of which you do not understand.
Remove /usr/local
everything related to ruby from.
By rvm there is an office. documentation. Read and do as it says.
I got Ruby, but later I downloaded ruby 2.2.3 via RVM, and now I need to remove ruby 2.0.0, because RVM does not see it.
but why? and if what system script wants to ruby? Let him use it. Use the rest as is.
It is better to use rbenv, at least it has been updated more often lately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question