Last active
September 22, 2020 19:48
-
-
Save gufranco-zz/5561808 to your computer and use it in GitHub Desktop.
How to install Ruby, Git, Rails, PostgreSQL and MySQL on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've updated the script :)