我正试图修复在我的VScode上运行一个生锈程序时所面临的错误,如下面的链接所示,安装openssl并通过如下文章:Error: could not find native static library ssl, perhaps an -L flag is missing? on WIndows设置使用vcpkg的路径
根据答案,我通过visual studio代码终端运行了以下说明:
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat上述代码成功执行,但下面用于安装openssl的代码导致错误。
.\vcpkg.exe install openssl:x64-windows-static错误:
Error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance如何解决上述错误?我已经安装了cmake并正常运行,但是仍然没有成功尝试让vcpkg安装链接应答中提到的openssl.The路径,并且我正在正确的目录中运行上面的所有代码。
我运行代码的目录:
C:\Users\Administrator\Desktop\wintun-maindtls\vcpkgfile\vcpkg>发布于 2022-05-09 16:30:00
即使安装了Visual studio代码,也可以安装visual安装程序的最新版本。选中用于安装Linux桌面开发工具的框和windows复选框以安装C++ CMake工具,然后继续安装。
https://stackoverflow.com/questions/72134097
复制相似问题