기본 요건
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
첫 번째 시뮬레이터에서 작업을 시작하려면 몇 가지 사항을 먼저 완료해야 합니다.
Bazel 설치
MPACT-Sim은 Bazel 빌드 시스템 버전 6.1.1을 사용하므로 튜토리얼을 진행하려면 Bazel을 설치해야 합니다. Bazel을 설치하고 관리하는 가장 쉬운 방법은 Go로 작성된 Bazel의 래퍼인 Bazelisk를 설치하는 것입니다. 설치 안내는 GitHub 사이트에서 확인할 수 있습니다.
Git 설치
MPACT-Sim 인프라 및 튜토리얼은 github.com에 호스팅되므로 작동하는 git 설치가 필요합니다. 적절한 버전의 git이면 작동하므로 시스템에 적합한 버전을 선택합니다.
아직 git이 설치되어 있지 않고 Linux를 사용하는 경우 일반적으로 다음과 같이 명령줄에서 git을 설치할 수 있습니다.
$ sudo apt-get update
$ sudo apt-get install git
다른 시스템의 경우 git 다운로드에서 설치 프로그램을 다운로드할 수 있습니다.
MPACT-Sim 튜토리얼 저장소 다운로드
이 튜토리얼에 필요한 모든 코드는 GitHub mpact-sim-codelabs 저장소에 포함되어 있습니다.
git clone
https://github.com/google/mpact-sim-codelabs
명령어를 사용하여 이 저장소를 클론합니다.
모두 제대로 작동하는지 확인하려면 mpact-sim-codelabs 디렉터리로 변경하고 bazel build ...:all
명령어를 입력합니다. 그러면 필요한 모든 종속 항목이 다운로드되고 모든 타겟이 빌드됩니다. 처음에는 몇 분 정도 걸리지만 결과가 캐시되고 이후 빌드는 훨씬 더 빨리 완료됩니다. 이 명령어는 DEBUG 메시지와 몇 가지 컴파일러 경고를 포함하여 진행 상황을 출력합니다. 출력의 마지막 부분은 다음과 같이 표시됩니다.
INFO: Elapsed time: 308.268s, Critical Path: 279.57s
INFO: 991 processes: 314 internal, 677 linux-sandbox.
INFO: Build completed successfully, 991 total actions
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-06(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-11-06(UTC)"],[[["Before starting, ensure Bazel version 6.1.1 is installed, preferably using Bazelisk."],["A working installation of Git is necessary to access the MPACT-Sim infrastructure and tutorials."],["Download the MPACT-Sim tutorials repository from GitHub using `git clone https://github.com/google/mpact-sim-codelabs`."],["Verify the setup by running `bazel build ...:all` within the `mpact-sim-codelabs` directory, which will build all targets and download dependencies."]]],["To prepare for the simulator tutorials, install Bazel (version 6.1.1), preferably using Bazelisk. Install Git, compatible with your system, for accessing the GitHub-hosted resources. Download the `mpact-sim-codelabs` repository via `git clone https://github.com/google/mpact-sim-codelabs`. Navigate to the cloned directory and verify setup with `bazel build ...:all`, which downloads dependencies and builds all targets. The final output should display successful completion with a summary of processes.\n"]]