How to install rvm in Debian squeeze

0

I'm trying to install rvm but I can not. When checking for dependencies it complains about the libgmp-dev package that is not installed and trying to install it is not localized.

So I've been searching and it looks like there really is no such package for squeeze or the package has another name ...

    
asked by anonymous 04.07.2016 / 00:44

3 answers

0

Rafael, I do not have debian for testing.

At the moment with Mint installed any test done would not be valid.

So I suggest that you try to install a version compatible with the last distribution of debian contained in this page:

link

I hope I have helped.

    
04.07.2016 / 00:46
0

Try the following steps:

Install some Debian prerequisites

apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion locales-all python libxml2=2.7.8.dfsg-2+squeeze6

Now try to install RVM normally

curl -L https://get.rvm.io | bash -s stable
    
05.07.2016 / 14:09
0

Installs rbenv which is much better than RVM. With git installed run this command on the terminal.

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv

Ruby-build, which simplifies the way Ruby is installed.

git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

Add rbenv to $ PATH. To do this, execute the following command:

echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc

Add the boot script to your terminal boot file. Run the command.

echo 'eval "$(rbenv init -)"' >> ~/.bashrc

Restart your terminal to load these new settings, or run the command source ~/.bashrc.

If everything went well. Now you can install ruby. To find out which versions are available, run the command rbenv install -l.

$ rbenv install -l
Available versions:
  1.8.6-p383
  1.8.6-p420
  1.8.7-p249
  1.8.7-p302
  1.8.7-p334
  ...

To install the latest version available at this time, run the command rbenv install 2.3.1. This process will take a while, since rbenv will compile Ruby.

When the installation is finished, run the global rbenv 2.3.1 command to set the global version of Ruby /

To display the Ruby version, run the ruby -v command.

Own opinion about rbenv being superior to RMV and the possibility of installing plugins to make your life easier. One of them is rbenv-gem-rehash, which automatically rehashing whenever a gem is installed or removed.

The rbenv init command does this for you, but it is only executed when a new terminal session is started, so any gem installed after this step may not work correctly unless you manually run the rbenv rehash command. "

Run the following command to install the plugin:

$ git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash

source: Blog Nando Vieira

    
07.07.2016 / 00:23