目次
文書の過去の版を表示しています。
Flutter
インストール
参考: Install - Flutter documentation
これは Linux である Fedora での手順です。
Linux install - Flutter documentation
システム要件
オペレーティング システム: Linux (64 ビット)
ディスク容量: 600 MB (IDE/ツール用のディスク容量は含まれない)
Tools: Flutter が依存するこれらのコマンドライン ツール
bash curl file git2.x mkdir rm unzip which xz-utils zip
共有ライブラリ: Flutter test コマンドは、以下のこのライブラリに依存する。
libGLU.so.1 - libglu1-mesa (Ubuntu/Debian)、mesa-libGLU (Fedora)
などの mesa パッケージによって提供される。
Fedora (足りていない依存パッケージは、以下のコマンドですべてインストールされます)
$ sudo dnf install bash curl file git unzip xz zip mesa-libGLU clang
メタデータの期限切れの最終確認: 1:31:15 時間前の 2023年02月26日 10時30分08秒 に実施しました。 パッケージ bash-5.2.15-1.fc37.x86_64 は既にインストールされています。 パッケージ curl-7.85.0-6.fc37.x86_64 は既にインストールされています。 パッケージ file-5.42-4.fc37.x86_64 は既にインストールされています。 パッケージ git-2.39.2-1.fc37.x86_64 は既にインストールされています。 パッケージ unzip-6.0-58.fc37.x86_64 は既にインストールされています。 パッケージ xz-5.4.1-1.fc37.x86_64 は既にインストールされています。 パッケージ zip-3.0-33.fc37.x86_64 は既にインストールされています。 パッケージ mesa-libGLU-9.0.1-7.fc37.x86_64 は既にインストールされています。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: clang x86_64 15.0.7-1.fc37 updates 75 k 依存関係のインストール: clang-libs x86_64 15.0.7-1.fc37 updates 21 M clang-resource-filesystem x86_64 15.0.7-1.fc37 updates 12 k llvm x86_64 15.0.7-1.fc37 updates 14 M 弱い依存関係のインストール: compiler-rt x86_64 15.0.7-1.fc37 updates 2.8 M libomp x86_64 15.0.7-1.fc37 updates 500 k libomp-devel x86_64 15.0.7-1.fc37 updates 358 k トランザクションの概要 ============================================================================================================== インストール 7 パッケージ ダウンロードサイズの合計: 39 M インストール後のサイズ: 212 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/7): clang-15.0.7-1.fc37.x86_64.rpm 148 kB/s | 75 kB 00:00 (2/7): clang-resource-filesystem-15.0.7-1.fc37.x86_64.rpm 24 kB/s | 12 kB 00:00 (3/7): libomp-15.0.7-1.fc37.x86_64.rpm 493 kB/s | 500 kB 00:01 (4/7): compiler-rt-15.0.7-1.fc37.x86_64.rpm 1.5 MB/s | 2.8 MB 00:01 (5/7): libomp-devel-15.0.7-1.fc37.x86_64.rpm 400 kB/s | 358 kB 00:00 (6/7): llvm-15.0.7-1.fc37.x86_64.rpm 1.0 MB/s | 14 MB 00:13 (7/7): clang-libs-15.0.7-1.fc37.x86_64.rpm 1.1 MB/s | 21 MB 00:19 -------------------------------------------------------------------------------------------------------------- 合計 1.8 MB/s | 39 MB 00:20 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : clang-resource-filesystem-15.0.7-1.fc37.x86_64 1/7 インストール中 : libomp-15.0.7-1.fc37.x86_64 2/7 インストール中 : libomp-devel-15.0.7-1.fc37.x86_64 3/7 インストール中 : compiler-rt-15.0.7-1.fc37.x86_64 4/7 インストール中 : clang-libs-15.0.7-1.fc37.x86_64 5/7 インストール中 : clang-15.0.7-1.fc37.x86_64 6/7 インストール中 : llvm-15.0.7-1.fc37.x86_64 7/7 scriptletの実行中: llvm-15.0.7-1.fc37.x86_64 7/7 検証 : clang-15.0.7-1.fc37.x86_64 1/7 検証 : clang-libs-15.0.7-1.fc37.x86_64 2/7 検証 : clang-resource-filesystem-15.0.7-1.fc37.x86_64 3/7 検証 : compiler-rt-15.0.7-1.fc37.x86_64 4/7 検証 : libomp-15.0.7-1.fc37.x86_64 5/7 検証 : libomp-devel-15.0.7-1.fc37.x86_64 6/7 検証 : llvm-15.0.7-1.fc37.x86_64 7/7 インストール済み: clang-15.0.7-1.fc37.x86_64 clang-libs-15.0.7-1.fc37.x86_64 clang-resource-filesystem-15.0.7-1.fc37.x86_64 compiler-rt-15.0.7-1.fc37.x86_64 libomp-15.0.7-1.fc37.x86_64 libomp-devel-15.0.7-1.fc37.x86_64 llvm-15.0.7-1.fc37.x86_64 完了しました!
Flutter SDK の入手
Snap のインストールが必要です🤔
$ sudo snap install flutter --classic
2023-02-15T09:11:39+09:00 INFO Waiting for automatic snapd restart... flutter 0+git.ccbc698 from Flutter Team✓ installed
以下のエラーが発生する場合は再実行する🤔
error: too early for operation, device not yet seeded or device model not acknowledged
Flutter SDK パスを表示(はじめて実行する場合は SDK をダウンロードしてインストールされる)
$ flutter sdk-path
Initializing Flutter % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 172k 100 172k 0 0 281k 0 --:--:-- --:--:-- --:--:-- 280k Downloading https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.3-stable.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 536M 100 536M 0 0 1747k 0 0:05:14 0:05:14 --:--:-- 2339k Flutter initialized ^C
$ flutter sdk-path
/home/tomoyan/snap/flutter/common/flutter