1) Run the following commands to remove rvm:
rvm implode
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
2) Run the sudo apt-get --purge remove ruby-rvm
command to remove ruby.
1) Run the sudo apt-get install curl
command to install curl.
2) Run the curl -L https://get.rvm.io | bash -s stable --ruby --auto-dotfiles
command to install rvm.
3) Open new terminal and validate environment is clean from old RVM settings (should be no output) by running the env | grep rvm
command.
4) Run the
5) Run the rvm requirements
command to check requirements for your system. ex.:
sudo apt-get --no-install-recommends install bash curl git patch bzip2
sudo apt-get --no-install-recommends 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 libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc
command to load rvm as a function in your bash.
16.04 can't find lwebp https://developers.google.com/speed/webp/docs/compiling#unix + install lwebp + install webp
1) Run the rvm install 1.9.3
command to install ruby 1.9.3 HEAD.
2) Run the rvm --default use 1.9.3
command to set ruby 1.9.3 as default.
3) Run the echo PS1="\$(~/.rvm/bin/rvm-prompt) $PS1" >> ~/.bashrc
command to display ruby version in your bash prompt.
Can't find Magick-config
Install magick library: sudo apt-get install graphicsmagick-libmagick-dev-compat
Can't find MagickWand.h
Install magick library: sudo apt-get install libmagickwand-dev
16.04.1
sudo apt-get install libmagickwand-dev
sudo apt-get install graphicsmagick-imagemagick-compat
PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH" gem install rmagick -v '2.13.2'
Gem install mysql2 fails
Install mysql client library: sudo apt-get install mysql-server libmysqlclient-dev
Could not find a JavaScript runtime
Install nodejs libray: sudo apt-get install nodejs
Error connecting to Redis on 127.0.0.1:6379
Install redis 2.6.x
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server