Skip to content

Instantly share code, notes, and snippets.

@jbnunn
Forked from cluePrints/gist:2521535
Last active December 22, 2015 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbnunn/35e8baa7edbd3e3e08b7 to your computer and use it in GitHub Desktop.
Save jbnunn/35e8baa7edbd3e3e08b7 to your computer and use it in GitHub Desktop.
Installing Rails @ Amazon Linux

Steps

  • Build tools:

      sudo yum groupinstall "Development Tools"
    
  • Dependencies:

      yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \
      libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
    
  • Install RVM with Ruby

      gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
      \curl -sSL https://get.rvm.io | bash -s stable --ruby
      source ~/.bash_profile
      rvm reload
      rvm use 2.2
    
  • Install Rails, Bundler

      gem install bundler --no-rdoc --no-ri
      gem install rails --no-rdoc --no-ri
    
  • Postgres

      sudo yum install -y postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
      sudo service postgresql initdb
      sudo service postgresql start
    
  • MySQL

      sudo yum install sqlite3-dev
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment