오리 도서관/(미분류) 삽질 방지 개발 지식

[vcpkg] mac os 환경에서 BUILD_FAILED 가 발생할 때

Kwon_Ori 2025. 1. 3. 23:40

서론

맥북에 개발 환경 세팅을 하는 중 뜬금없이 아래와 같은 에러가 발생했다.

error: building openssl:arm64-osx failed with: BUILD_FAILED

 

(가능성은 매우 낮지만) 내가 M2를 쓰고 있어서 환경에 맞는 패키지가 없어서 그런가 싶었는데, pkg-config 를 설치하지 않아 라이브러리 빌드에 필요한 정보가 누락되어 발생한 문제였다.

 

해결 방법

home brew 를 쓰고 있다면 아래 한 줄만 입력하면 해결된다.

brew install pkg-config

 

출처

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

 

error: building openssl:arm64-osx failed with: BUILD_FAILED · Issue #31312 · microsoft/vcpkg

Operating system Mac OS Compiler No response Steps to reproduce the behavior ./vcpkg/vcpkg install cpprestsdk Failure logs Computing installation plan... The following packages will be built and in...

github.com