Guide: How to install vcpkg on MacOS
KOH MINGYANG | 2026-01-19
What is vcpkg
vcpkg is a free and open-source C/C++ package manager used for acquiring and managing libraries (similar to npm). This guide walks through how to install vcpkg on MacOS (15.6)
Steps
- Clone vcpkg repo into your home folder
cd ~
git clone https://github.com/Microsoft/vcpkg.git
- Compile the vcpkg executable
./vcpkg/bootstrap-vcpkg.sh
- Integrate vcpkg with system
./vcpkg integrate install
- Setup environment variables
export VCPKG_ROOT="$HOME/vcpkg"
vcpkg is now ready to use!