성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>vcpkg install bzip2 빌드 에러 - "Error: Building package bzip2:x86-windows failed with: BUILD_FAILED"</h1> <p> bzip2에 의존하는 패키지를 빌드하려고 하니 다음과 같은 식으로 오류가 발생합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\vcpkg> <span style='color: blue; font-weight: bold'>vcpkg install sfml</span> ...[생략]... -- Testing integrity of downloaded file... CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:56 (message): File does not have expected hash: File path: [ c:/temp/vcpkg/downloads/bzip2-1.0.6.tar.gz ] Expected hash: [ 00ace5438cfa0c577e5f578d8a808613187eff5217c35164ffe044fbafdfec9e98f4192c02a7d67e01e5a5ccced630583ad1003c37697219b0f147343a3fdd12 ] Actual hash: [ a9479bf44d186229ec02d4f91a712f9a196e27c6ad3d41eb086592fb326cf87c552376301db3d4244b29e2b3a6eb00549d6d04908819bea8cf9ee36754e6c1b5 ] The file may be corrupted. Call Stack (most recent call first): scripts/cmake/vcpkg_download_distfile.cmake:96 (test_hash) ports/bzip2/portfile.cmake:4 (vcpkg_download_distfile) scripts/ports.cmake:72 (include) Error: Building package bzip2:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: bzip2:x86-windows Vcpkg version: 0.0.100-2017-12-15-76096c95f1d3cbb85779ccd78c30513eec32b517 Additionally, attach any relevant sections from the log files above. </pre> <br /> 그러니까, bzip2 빌드가 실패하는 것입니다. 실제로 bzip2에 대해 독자적으로 install 명령어를 내려도,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\vcpkg> <span style='color: blue; font-weight: bold'>vcpkg install bzip2</span> The following packages will be built and installed: bzip2[core]:x86-windows Starting package 1/1: bzip2:x86-windows Building package bzip2:x86-windows... -- CURRENT_INSTALLED_DIR=c:/temp/vcpkg/installed/x86-windows -- DOWNLOADS=c:/temp/vcpkg/downloads -- CURRENT_PACKAGES_DIR=c:/temp/vcpkg/packages/bzip2_x86-windows -- CURRENT_BUILDTREES_DIR=c:/temp/vcpkg/buildtrees/bzip2 -- CURRENT_PORT_DIR=c:/temp/vcpkg/ports/bzip2/. -- Using cached c:/temp/vcpkg/downloads/bzip2-1.0.6.tar.gz -- Testing integrity of cached file... CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:56 (message): File does not have expected hash: File path: [ c:/temp/vcpkg/downloads/bzip2-1.0.6.tar.gz ] Expected hash: [ 00ace5438cfa0c577e5f578d8a808613187eff5217c35164ffe044fbafdfec9e98f4192c02a7d67e01e5a5ccced630583ad1003c37697219b0f147343a3fdd12 ] Actual hash: [ a9479bf44d186229ec02d4f91a712f9a196e27c6ad3d41eb086592fb326cf87c552376301db3d4244b29e2b3a6eb00549d6d04908819bea8cf9ee36754e6c1b5 ] Please delete the file and retry if this file should be downloaded again. Call Stack (most recent call first): scripts/cmake/vcpkg_download_distfile.cmake:68 (test_hash) ports/bzip2/portfile.cmake:4 (vcpkg_download_distfile) scripts/ports.cmake:72 (include) Error: Building package bzip2:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: bzip2:x86-windows Vcpkg version: 0.0.100-2017-12-15-76096c95f1d3cbb85779ccd78c30513eec32b517 Additionally, attach any relevant sections from the log files above. </pre> <br /> 마찬가지의 오류가 발생합니다. 그런데, 다운로드한 bzip2-1.0.6.tar.gz의 내용을 보면 단순히 bzip2에 대한 소개를 담은 HTML 페이지가 나옵니다. 즉, 해당 파일의 다운로드 위치가 바뀐 것입니다. 검색해 보면 다음의 글이 나오는데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > can't build plplot due to bzip ; <a target='tab' href='https://github.com/Microsoft/vcpkg/issues/4195'>https://github.com/Microsoft/vcpkg/issues/4195</a> </pre> <br /> 원래 있어야 할 "<a target='tab' href='http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz'>http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz</a>" 다운로드 링크를 bzip.org 측에서 더 이상 제공하고 있지 않는 것입니다. 새로 바뀐 다운로드 주소가 필요한데요, 그래서 다음의 패치가 있었다고 합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Remove invalid URL to bzip.org site ; <a target='tab' href='https://github.com/Microsoft/vcpkg/commit/3d87ec6b9fbb07bd299367b6bc89c4a271567233'>https://github.com/Microsoft/vcpkg/commit/3d87ec6b9fbb07bd299367b6bc89c4a271567233</a> </pre> <br /> 그러니까, "<a target='tab' href='https://github.com/past-due/bzip2-mirror/releases/download/v1.0.6/bzip2-1.0.6.tar.gz'>https://github.com/past-due/bzip2-mirror/releases/download/v1.0.6/bzip2-1.0.6.tar.gz</a>" 경로로 바뀐 것입니다. 그래서 어쨌든 vcpkg를 업데이트했는데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > vcpkg 업데이트 ; <a target='tab' href='http://www.sysnet.pe.kr/2/0/11779'>http://www.sysnet.pe.kr/2/0/11779</a> </pre> <br /> 그래도 여전히 "Error: Building package bzip2:x86-windows failed with: BUILD_FAILED" 오류가 발생합니다. 문제는, 이미 다운로드했던 "c:/temp/vcpkg/downloads/bzip2-1.0.6.tar.gz" 파일의 캐시가 지워지지 않고 그대로 재사용하기 때문입니다. 따라서 이 파일을 직접 삭제하고 다시 빌드 명령을 내리면 새로 바뀐 bzip2 다운로드 URL의 내용을 받아와 빌드에 반영하므로 정상적으로 패키지 빌드가 완료됩니다.<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1470
(왼쪽의 숫자를 입력해야 합니다.)