We'll use the Terminal application to install most of our tools. The Terminal is a text-based interface on your computer. It may feel a bit awkward at first after years of relying on a GUI interface, but the more you use the terminal the more efficiently you can get things done.
You can open a Terminal by going to Applications Accessories Terminal. In your terminal type:
sudo apt-get install autoconf automake bison build-essential curl git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev