# QuickFIX Installation on macOS
This document provides detailed steps for installing QuickFIX on macOS.
Prerequisites
Install
boostusing Homebrew:brew install boostInstall
opensslusing Homebrew:brew install openssl
Installation Steps
Clone the QuickFIX repository
git clone https://github.com/quickfix/quickfix.git
Navigate to the QuickFIX directory
cd quickfix
Create a build directory
mkdir build cd build
Configure CMake
cmake ..
Build QuickFIX
cmake –build .
Install QuickFIX
cmake –install .
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.
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
Verify the installation
You can verify the installation by running one of the following commands:
Check the QuickFIX version using the
quickfix-configexecutable:
quickfix-config –version
Run one of the example executables like
executororordermatch:
$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.txtfile:
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.