OS/Windows

vcpkg integrate install 오류 error: failed to install system targets file to C:\Program Files (x86)\MSBuild/Microsoft.Cpp/v4.0/V140/ImportBefore/Default/vcpkg.system.props 문제 해결

OneSeat 2023. 11. 23.
반응형

🧱 사양

Windows 11

💣 문제

Visual Studio에서 vcpkg를 사용하려면 다음 명령을 실행해야 합니다.

vcpkg integrate install

 

그러나 해당 명령어를 입력했을 때 정상적인 진행 대신

error: failed to install system targets file to C:\Program Files (x86)\MSBuild/Microsoft.Cpp/v4.0/V140/ImportBefore/Default/vcpkg.system.props

라는 에러가 발생하였습니다.

명령 프롬프트 error: failed to install system targets file to C:\Program Files (x86)\MSBuild/Microsoft.Cpp/v4.0/V140/ImportBefore/Default/vcpkg.system.props 에러 발생

💡 해결

명령 프롬프트를 관리자 권한으로 실행하고 명령어를 입력합니다.

vcpkg integrate install

 

명령 프롬프트에서 vcpkg integrate install 입력 시 정상 진행

 

참고 사이트

https://github.com/microsoft/vcpkg/issues/11591

 

issue with installation · Issue #11591 · microsoft/vcpkg

Hi I try to run integrate the install in the command prompt and I get this: Error: failed to copy targets file to C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\ImportBefore\Default\vcpkg.s...

github.com

 

https://github.com/microsoft/vcpkg/tree/master#quick-start-windows 가이드를 잘 보면 아래와 같은 문장이 있습니다.

 

GitHub - microsoft/vcpkg: C++ Library Manager for Windows, Linux, and MacOS

C++ Library Manager for Windows, Linux, and MacOS. Contribute to microsoft/vcpkg development by creating an account on GitHub.

github.com

(관리자 권한이 필요할 수도 있습니다)
(may require administrator elevation)

 

가이드를 잘 확인하는 것이 중요합니다...

반응형

댓글