Skip to content

Instantly share code, notes, and snippets.

@piyushawasthi
Created July 11, 2019 10:00
Show Gist options
  • Save piyushawasthi/6a0a92c9808a60c3f14baa9e143eabb8 to your computer and use it in GitHub Desktop.
Save piyushawasthi/6a0a92c9808a60c3f14baa9e143eabb8 to your computer and use it in GitHub Desktop.
Install latest RVM, Ruby and Rails on ubuntu
sudo apt-get update &&
sudo apt-get install build-essential git-core curl &&
curl -L get.rvm.io | bash -s stable &&
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc &&
. ~/.bashrc &&
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \
subversion &&
rvm autolibs enable &&
rvm install 2.6.3 &&
rvm --default use 2.6.3 &&
gem install rails -v 5.2.3 &&
sudo apt-get install libmysqlclient-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment