Skip to content

Instantly share code, notes, and snippets.

@pilinux
Last active June 1, 2018 17:11
Show Gist options
  • Save pilinux/bacbf63b6b11d975e7e401e813fe0a5c to your computer and use it in GitHub Desktop.
Save pilinux/bacbf63b6b11d975e7e401e813fe0a5c to your computer and use it in GitHub Desktop.
Install ruby and rails - simplest procedure for Ubuntu OS
#!/bin/bash
sudo apt install build-essential ruby liblzma-dev patch ruby-dev zlib1g-dev libsqlite3-dev nodejs
sudo gem update --system
sudo gem install bundler
sudo gem install nokogiri -v 1.8.2
sudo gem install rails -v 5.2.0
sudo gem install sqlite3 -v 1.3.13
sudo gem install execjs
# To create an app inside a directory,
# $rails _5.2.0_ new hello_app
# and when asked, provide password to run with sudo command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment