Skip to content

Instantly share code, notes, and snippets.

@vysakh0
Last active December 31, 2015 03:39
Show Gist options
  • Save vysakh0/7928627 to your computer and use it in GitHub Desktop.
Save vysakh0/7928627 to your computer and use it in GitHub Desktop.
Installing ruby using rbenv (non-rails)

install rbenv

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile

Basic packages for Ruby

sudo apt-get install libreadline-dev libssl-dev zlib1g-dev build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev

Install ruby build to get latest

git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
sudo ./install.sh

Install Ruby

CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 2.1.1 
rbenv global 2.1.1

Install bundler

gem install bundler --no-ri --no-rdoc

Rails

gem install rails --no-ri --no-rdoc

Also Install nodejs

sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment