X
X
xinon2015-08-27 20:16:31
linux
xinon, 2015-08-27 20:16:31

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

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. And so it turns out that I can't just change the version of ruby.
Since I'm such a shell in linux, I can't do it myself)))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AVKor, 2015-08-27
@xinon

Do not execute those commands, the meaning of which you do not understand.
Remove /usr/localeverything related to ruby ​​from.
By rvm there is an office. documentation. Read and do as it says.

S
Stanislav, 2015-08-27
@crackedmind

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 question

Ask a Question

731 491 924 answers to any question