Installation procedure for running MTConnect Agent on Mac.
Install brew and xcode command line tools.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
xcode-select —install
Run brew help to verify install. You may need to refer to "Next Steps" in the terminal for commands to add Homebrew to your PATH.
brew help
brew install git
brew install cmake
pip3 install conan
git clone https://github.com/mtconnect/cppagent.git
cd cppagent
conan export conan/mqtt_cpp
conan export conan/mruby
Test the conan profile. If the default conan profile is not set, use the following command.
conan profile detect
conan create cppagent -pr cppagent/conan/profiles/macos --build=missing
Note that the filepath may be specific to your build; in this example the buildid is mtcond5569031024c6.
touch .zshrc
nano .zshrc
Add the following to the .zshrc file; if the file does not exist opening in nano will add the file.
export PATH=$PATH:~/.conan2/p/b/mtcond5569031024c6/p/bin
Save changes to .zshrc and restart terminal. Run the agent.
agent
mkdir build & cd build
cmake -G Xcode ..