# Your-program.sh doesn't work

**URL:** <https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271>\
**Category:** Challenges\
**Tags:** challenge:git\
**Created:** [September 8, 2025, 5:49pm UTC](https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271 "2025-09-08T17:49:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nyerelia](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/nyerelia/32/17058_2.png) [@Nyerelia](https://forum.codecrafters.io/u/Nyerelia)\
**Post date:** [September 8, 2025, 5:49pm UTC](https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271/1 "2025-09-08T17:49:20Z")

</div>

I did install vcpkg as recommended (which is not obvious and took me a while to find that information) but it still fails. I’ve searched and tried various stuff but I can’t get it to work, so I left it as it was originally. This is the error that it prints:

```auto
$ ./your_program.sh– Running vcpkg installAll requested packages are currently installed.All requested installations completed successfully in: 2.32 ms– Running vcpkg install - doneCMake Error at CMakeLists.txt:3 (project):Running

```

```auto
‘nmake’ ‘-?’

```

```auto
failed with:

```

```auto
no such file or directory

```

```auto
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguageCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage– Configuring incomplete, errors occurred!

```

I am running it in Windows from git bash so that it can execute the .sh. The CMake version is cmake version 4.1.0

Edit: the compiler I have is MSys64/MinGW64 with the path properly set. I added the line

`cmake -G "MinGW Makefiles" .`

to the script to make sure it used it as the compiler and now I get

```auto
CMake Error at C:/Program Files/CMake/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
  OPENSSL_INCLUDE_DIR)

```

(plus Call Stack)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [September 10, 2025, 5:30pm UTC](https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271/4 "2025-09-10T17:30:41Z")

</div>

Hey @Nyerelia, could you confirm if you’ve set the `VCPKG_ROOT` environment variable to the path where vcpkg is installed?

---

<div class="post-metadata">

**Author:** ![Nyerelia](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/nyerelia/32/17058_2.png) [@Nyerelia](https://forum.codecrafters.io/u/Nyerelia)\
**Post date:** [September 11, 2025, 9:41am UTC](https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271/6 "2025-09-11T09:41:35Z")

</div>

Yes, it was. I tinkered a bit with both the script and CMake and finally got it to work, although I don’t completely understand why (and I have to remember not to commit those changes). But it’s working, so I guess this thread can be closed now. Thank you @andy1li for passing by and trying to help 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [September 16, 2025, 9:42am UTC](https://forum.codecrafters.io/t/your-program-sh-doesnt-work/15271/7 "2025-09-16T09:42:22Z")

</div>

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