Homebrew Installation for macOS

You can use the Homebrew package manager to install Liquibase on macOS. For this, you need to do the following:

  1. Ensure you have Homebrew on your computer. If you need to install it, go to Install Homebrew.
  2. Ensure you have Java on your computer by running java -version in the Terminal. To install Java, go to Java SE Downloads.
  3. Install Xcode by running the following command:
  4. xcode-select --install

    Note: If you already have Xcode and receive an error message, you will need to reset it: sudo xcode-select --reset.

  1. Install GCC (GNU Compiler Collection), and then install Liquibase:
  2. brew install gcc
    brew install liquibase
  1. Set the environment variable LIQUIBASE_HOME to $(brew --prefix)/opt/liquibase/libexec as follows:
  2. export LIQUIBASE_HOME=$(brew --prefix)/opt/liquibase/libexec
  3. Verify that you installed Liquibase correctly by running the Liquibasehelp command:
  4. liquibase --help

Note: For more information, see the Homebrew Documentation.