{{notification.text}}

MirGames

Проблема

После установки rvm получаю штуки вроде:
slava@slava-K50AF:~/rails/blog$ gem install rails
ERROR: Loading command: install (LoadError)
cannot load such file — zlib
ERROR: While executing gem… (NameError)
uninitialized constant Gem::Commands::InstallCommand

или вроде:

Fetching gem metadata from rubygems.org/.
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL
using RVM are available at rvm.io/packages/openssl.

Решение

  1. rvm requirements
  2. sudo apt-get 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 pkg-config
  3. rvm reinstall all --force
  4. Complete!
12.11.12 01:45