microsoft / microsoft/vcpkg

internal error: system.process.cpp(261): Could not determine current executable path on OpenBSD

Open
#52,826 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

After install vcpkg, is it OK to run vcpkg with specifying path(like $VCPKG_ROOT/vcpkg). However, add $VCPKG_ROOT into PATH environment variable and run vcpkg, I got an error message.

➜  testproj $VCPKG_ROOT/vcpkg --version
vcpkg package management program version 2999-12-31-unknownhash

See LICENSE.txt for license information.
➜  testproj vcpkg
internal error: /home/niko/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2026-05-27/src/vcpkg/base/system.process.cpp(261): Could not determine current executable path.
Please open an issue at https://github.com/microsoft/vcpkg/issues/new?template=other-type-of-bug-report.md&labels=category:vcpkg-bug with detailed steps to reproduce the problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/vcpkg/base/system.process.cpp:261 and reproduce the difference between invoking vcpkg through $VCPKG_ROOT/vcpkg and through PATH on OpenBSD. Confirm the fix by running both invocation forms and checking that each reports the version or otherwise starts without the current-executable-path error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.