# QuickFIX Installation on macOS

This document provides detailed steps for installing QuickFIX on macOS.

Prerequisites

  • Install boost using Homebrew: brew install boost

  • Install openssl using Homebrew: brew install openssl

Installation Steps

  1. Clone the QuickFIX repository


git clone https://github.com/quickfix/quickfix.git

  1. Navigate to the QuickFIX directory


cd quickfix

  1. Create a build directory


mkdir build cd build

  1. Configure CMake


cmake ..

  1. Build QuickFIX


cmake –build .

  1. Install QuickFIX


cmake –install .

  1. Set the installation directory

By default, QuickFIX will be installed in /usr/local/. If you want to install it in a different location, such as your home directory, you can specify the installation prefix during the CMake configuration step:


cd .. rm -rf build mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/quickfix-install cmake –build . cmake –install .

This will install QuickFIX in $HOME/quickfix-install.

  1. Update the system’s PATH

If you installed QuickFIX in a custom location, update your system’s PATH to include the QuickFIX bin directory:


export PATH=$PATH:$HOME/quickfix-install/bin

  1. Verify the installation

You can verify the installation by running one of the following commands:

  • Check the QuickFIX version using the quickfix-config executable:


quickfix-config –version

  • Run one of the example executables like executor or ordermatch:


$HOME/quickfix-install/bin/executor $HOME/quickfix-install/bin/ordermatch

These executables should print the QuickFIX version information when run without any arguments.

  • Check the version information in the CMakeLists.txt file:


grep ‘set(PACKAGE_VERSION ‘ $HOME/quickfix-install/CMakeLists.txt

If you encounter any issues during the installation process, please refer to the official QuickFIX documentation or seek assistance from the QuickFIX community.