2

Has anyone encountered this error before with vcpkg? I'm running MacOS. To install vcpkg I ran:

git clone https://github.com/Microsoft/vcpkg

...

./bootstrap-vcpkg.sh

...

./vcpkg integrate install

zsh: permission denied: ./vcpkg

Also trying to run:

./vcpkg install wxwidgets

zsh: permission denied: ./vcpkg
Ryne
  • 1,195
  • 2
  • 14
  • 32
  • you should run it as `Administrator` or with the `sudo` – Igor May 11 '20 at 21:11
  • if i run ./vcpkg sudo integrate install it still says permission denied. Am i typing that correctly? sudo ./vcpkg install wxwidgets and ./vcpkg command not found – Ryne May 11 '20 at 21:56
  • ah i looked at the directory and i think i was just running the code from the wrong directory – Ryne May 11 '20 at 22:19

1 Answers1

0

Yep, it needs to be executed from the /bin directory and not from the /vcpkg directory. so that means (if you used brew to install it, otherwise it'll be somewhere else) ⤵︎

$ cd /usr/local/Cellar/vcpkg/2020.11-1/bin

(just open a file explorer window and find the bin folder in vcpkg, you can then copy the path name and use that for your cd command, or open a shell window at that directory)

Then all you have to do is simply run the original command ⤵︎

$ ./vcpkg integrate install
tyirvine
  • 1,861
  • 1
  • 19
  • 29