

Installing the libmysqlclient-dev gives you the necessary files to compile the mysql2 gem which is what Rails will use to connect to MySQL when you setup your Rails app. sudo apt-get install mysql-server mysql-client libmysqlclient-dev

This information will go into your Rails app's database.yml file in the future.

Ubuntu 16 install aclocal 1.14 password#
As part of the installation process, you'll set the password for the root user. You can install MySQL server and client from the packages in the Ubuntu repository. If you're coming from PHP, you may already be familiar with MySQL. If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL. There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with. You'll probably want something more robust like MySQL or PostgreSQL. Chances are you won't want to use it because it's stored as a simple file on disk. Rails ships with sqlite3 as the default database. Some of these conflict with each other, so choose the one that sounds the most interesting to you, or go with my suggestion, rbenv. I've included instructions for installing from source as well, but in general, you'll want to choose either rbenv or rvm.Ĭhoose one method. Each have their own benefits, most people prefer using rbenv these days, but if you're familiar with rvm you can follow those steps as well. Next we're going to be installing Ruby using one of three methods. Sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn sudo apt install curlĮcho "deb stable main" | sudo tee /etc/apt//yarn.list To make sure we have everything necessary for Webpacker support in Rails, we're first going to start by adding the Node.js and Yarn repositories to our system before installing them. The first step is to install some dependencies for Ruby and Rails.
