Install Homebrew Catalina

Setting Up A Database

We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles.

How To Install Homebrew On Mac Catalina

Catalina

Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL.

There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with.

If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL.

Installing Homebrew. First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source. Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes. Open Terminal and run the following command. I’m trying to install the whole thing on Mac OS Catalina (10.15.3) but with Homebrew; not with Macport. So far so good, I managed to compile and run everything: Python 3.8.1 built from source, with a binding to the latest TCL/TK (8.6.10) compilation of the geoviewer, no errors, with Apple clang: version 11.0.0 (clang-1100.0.33.17) However, when I run flair (which starts without errors. To install wine the following command can be used; wine-stable, wine-devel or wine-staging packages can be installed using the above example.The advantage of installing via homebrew means wine is available from a standard terminal sessionThe -no-quarantine line to used to above brew adding the quarantine bit. See Building Wine.

If you're coming from PHP, you may already be familiar with MySQL.

Install Homebrew Catalina

MySQL

HomebrewInstallInstall Homebrew Catalina

You can install MySQL server and client from Homebrew:

Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:

Install Homebrew On Mac Catalina

By default the mysql user is root with no password.

When you're finished, you can skip to the Final Steps.

Macos Catalina Install Homebrew

PostgreSQL

Cannot Install Homebrew On Catalina

You can install PostgreSQL server and client from Homebrew:

Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:

By default the postgresql user is your current OS X username with no password. For example, my OS X user is named chris so I can login to postgresql with that username.