< Back to blog

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

  1. Clone vcpkg repo into your home folder
cd ~
git clone https://github.com/Microsoft/vcpkg.git
  1. Compile the vcpkg executable
./vcpkg/bootstrap-vcpkg.sh
  1. Integrate vcpkg with system
./vcpkg integrate install
  1. Setup environment variables
export VCPKG_ROOT="$HOME/vcpkg"

vcpkg is now ready to use!

Sources

< Back to blog