Homebrew Installation for macOS
You can use the Homebrew package manager to install Liquibase on macOS. For this, you need to do the following:
- Ensure you have Homebrew on your computer. If you need to install it, go to Install Homebrew.
- Ensure you have Java on your computer by running
java -version
in the Terminal. To install Java, go to Java SE Downloads. - Install Xcode by running the following command:
xcode-select --install
Note: If you already have Xcode and receive an error message, you will need to reset it: sudo xcode-select --reset
.
- Install GCC (GNU Compiler Collection), and then install Liquibase:
brew install gcc
brew install liquibase
- Set the environment variable
LIQUIBASE_HOME
to$(brew --prefix)/opt/liquibase/libexec
as follows: - Verify that you installed Liquibase correctly by running the Liquibase
help
command:
export LIQUIBASE_HOME=$(brew --prefix)/opt/liquibase/libexec
liquibase --help
Note: For more information, see the Homebrew Documentation.