Skip to content

Instantly share code, notes, and snippets.

@gufranco-zz
Last active September 22, 2020 19:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save gufranco-zz/5561808 to your computer and use it in GitHub Desktop.
Save gufranco-zz/5561808 to your computer and use it in GitHub Desktop.
How to install Ruby, Git, Rails, PostgreSQL and MySQL on Ubuntu
#!/bin/sh
# System update
sudo apt-get update
# Curl
sudo apt-get -y install curl
# Git
sudo apt-get -y install git-core
# NodeJS
sudo apt-get -y install python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get -y install nodejs
# PostgreSQL
sudo apt-get -y install postgresql libpq-dev
# RVM
curl -L get.rvm.io | bash -s stable
source ~/.profile
source ~/.rvm/scripts/rvm
rvm autolibs enable
rvm requirements
# Ruby
rvm install ruby --default
# Avoid "File not found: lib" error
gem install rdoc
# Rails
gem install rails
@SteKearns
Copy link

Useful thanks

@gufranco-zz
Copy link
Author

I've updated the script :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment