简体   繁体   English

在 MAC OS Monterey 中与 VS Code 一起使用“vcpkg 集成安装”时出现错误

[英]Having error when "vcpkg integrate install" to use with VS Code in MAC OS Monterey

I am trying to use vcpkg to manage packages for my cpp projects.我正在尝试使用 vcpkg 来管理我的 cpp 项目的包。

I have installed from git as instructed, and having error when it comes to "vcpkg integrate install".我已按照说明从 git 安装,并且在“vcpkg 集成安装”时出现错误。

The error message says that错误消息说

"write_contents(.../.vcpkg/vcpkg.path.txt): No such file or directory" “write_contents(.../.vcpkg/vcpkg.path.txt): 没有这样的文件或目录”

I am using MAC Monterey and VScode.我正在使用 MAC Monterey 和 VScode。

Any advice would be appreciated.任何意见,将不胜感激。

After trying尝试后

./vcpkg/vcpkg integrate install --debug

It told me that it was not able to find the file "vcpkg/vcpkg.path.txt"它告诉我它无法找到文件“vcpkg/vcpkg.path.txt”

I simply created a file in my home directory我只是在我的主目录中创建了一个文件

mkdir ~/.vcpkg
touch ~/.vcpkg/vcpkg.path.txt

This resolved the issue这解决了问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM