Steps to building the C++ shell project locally

What are the steps required to run the C++ project locally, please?

I’ve tried running ./your_program.sh locally but have been unsuccessful thus far.

Here are my logs:

CMake Error at /opt/homebrew/Cellar/cmake/3.30.1/share/cmake/Modules/CMakeDetermineSystem.cmake:152 (message):
  Could not find toolchain file:
  /opt/homebrew/bin/vcpkg/scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

I am running it on a Mac have gcc, cmake and vcpkg installed.’

This is my first codecrafters challenge, thank you very much in advance for your help.

Hi @ox-797, you might need to set the VCPKG_ROOT environment variable:

export VCPKG_ROOT="$HOME/vcpkg"

Could you give this a try, and please let me know how it goes?

1 Like

@andy1li thank you very much!!! That was it! :relieved:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.