前提条件
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
最初のシミュレータの作成を開始する前に、いくつかの準備が必要です。
Bazel をインストールする
MPACT-Sim は Bazel ビルドシステム バージョン 6.1.1 を使用するため、チュートリアルを進めるには、Bazel をインストールする必要があります。Bazel をインストールして管理する最も簡単な方法は、Go で記述された Bazel のラッパーである Bazelisk をインストールすることです。インストール手順については、GitHub サイトをご覧ください。
Git のインストール
MPACT-Sim のインフラストラクチャとチュートリアルは github.com でホストされているため、git が正常にインストールされている必要があります。適切なバージョンの git であれば動作するため、システムに適したものを選択してください。
Linux で git がまだインストールされていない場合は、通常、次のようにコマンドラインから 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
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]