Installing Libraries Used by Ruby1:58 with Jay McGavren
In previous courses, we've been working with Rails in the "development" and "test" environments. In order to make our work publicly accessible, we're going to need a server with a "production" Rails environment. Let's get Ruby and Ruby on Rails installed on our server. There are several Linux libraries that need to be in place before we can install Ruby. So first we'll use your system's package manager to install those.
To follow along you'll need a Linux server or virtual machine. It should be set up with a deployment user that has full administrative access via the
If you have a hosting service such as Amazon Web Services, Rackspace, or DigitalOcean, you can just set up a server through your account there. If you don't, visit our Linux Servers on VirtualBox workshop to learn how to run a Linux server within your current operating system on your computer (for free!).
Installing System Libraries
Before you can install Ruby, you'll need to run these two commands on your server. (The
$ represents the prompt, so leave that out.)
$ sudo apt-get update $ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev nodejs
You need to sign up for Treehouse in order to download course files.Sign up