目次
文書の過去の版を表示しています。
JupyterLab + Rust 開発環境の構築
インストール
Fedora (RPM パッケージから...)
cargo、rustc はインストールされるが、rustup が存在しない…🤔
$ sudo dnf install rust cargo
メタデータの期限切れの最終確認: 4:36:48 時間前の 2022年08月31日 22時35分04秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: cargo x86_64 1.63.0-1.fc36 updates 4.6 M rust x86_64 1.63.0-1.fc36 updates 25 M 依存関係のインストール: rust-std-static x86_64 1.63.0-1.fc36 updates 27 M トランザクションの概要 ============================================================================================================== インストール 3 パッケージ ダウンロードサイズの合計: 56 M インストール後のサイズ: 220 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/3): cargo-1.63.0-1.fc36.x86_64.rpm 3.7 MB/s | 4.6 MB 00:01 (2/3): rust-std-static-1.63.0-1.fc36.x86_64.rpm 2.7 MB/s | 27 MB 00:09 (3/3): rust-1.63.0-1.fc36.x86_64.rpm 1.7 MB/s | 25 MB 00:14 -------------------------------------------------------------------------------------------------------------- 合計 3.4 MB/s | 56 MB 00:16 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : rust-std-static-1.63.0-1.fc36.x86_64 1/3 インストール中 : rust-1.63.0-1.fc36.x86_64 2/3 インストール中 : cargo-1.63.0-1.fc36.x86_64 3/3 scriptletの実行中: cargo-1.63.0-1.fc36.x86_64 3/3 検証 : cargo-1.63.0-1.fc36.x86_64 1/3 検証 : rust-1.63.0-1.fc36.x86_64 2/3 検証 : rust-std-static-1.63.0-1.fc36.x86_64 3/3 インストール済み: cargo-1.63.0-1.fc36.x86_64 rust-1.63.0-1.fc36.x86_64 rust-std-static-1.63.0-1.fc36.x86_64 完了しました!
動作確認
$ rustc --version
rustc 1.63.0 (Fedora 1.63.0-1.fc36)
$ cargo --version
cargo 1.63.0
Fedora (Rust 公式から...)
cargo、rustc、および、rustupなどもインストールされる😃
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer warning: it looks like you have an existing installation of Rust at: warning: /usr/bin warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first. warning: Otherwise you may have confusion unless you are careful with your PATH warning: If you are sure that you want both rustup and your already installed Rust warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes warning: or pass `-y' to ignore all ignorable checks. error: cannot install while Rust is installed Continue? (y/N) y Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /home/tomoyan/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory is located at: /home/tomoyan/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /home/tomoyan/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/tomoyan/.profile /home/tomoyan/.bash_profile /home/tomoyan/.bashrc You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation > Enter で続行 info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2022-08-11, rust version 1.63.0 (4b91a6ea7 2022-08-08) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' 18.3 MiB / 18.3 MiB (100 %) 10.6 MiB/s in 2s ETA: 0s info: downloading component 'rust-std' 26.1 MiB / 26.1 MiB (100 %) 10.3 MiB/s in 3s ETA: 0s info: downloading component 'rustc' 54.3 MiB / 54.3 MiB (100 %) 9.9 MiB/s in 6s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 18.3 MiB / 18.3 MiB (100 %) 1.4 MiB/s in 39s ETA: 0s info: installing component 'rust-std' 26.1 MiB / 26.1 MiB (100 %) 8.0 MiB/s in 5s ETA: 0s info: installing component 'rustc' 54.3 MiB / 54.3 MiB (100 %) 7.1 MiB/s in 8s ETA: 0s info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-unknown-linux-gnu' stable-x86_64-unknown-linux-gnu installed - rustc 1.63.0 (4b91a6ea7 2022-08-08) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, run: source "$HOME/.cargo/env"
warning: it looks like you have an existing installation of Rust at: warning: /usr/bin warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first. warning: Otherwise you may have confusion unless you are careful with your PATH warning: If you are sure that you want both rustup and your already installed Rust warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes warning: or pass `-y' to ignore all ignorable checks.
Rust の既存のインストールがあるようです: /usr/bin rustup は Rust と一緒にインストールしないでください。最初に既存の Rust をアンインストールしてください。 そうしないと、PATH に注意しない限り、混乱する可能性があります。 rustup とすでにインストールされているRustの両方が必要な場合は、`y' または `yes' と応答するか、RUSTUP_INIT_SKIP_PATH_CHECK を yes に設定するか、`-y' を渡してすべてのチェックを無視できます。
Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /home/tomoyan/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory located at: /home/tomoyan/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /home/tomoyan/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/tomoyan/.profile /home/tomoyan/.bash_profile /home/tomoyan/.bashrc You can uninstall at any time with rustup self uninstall and these changes will be reverted.
Rust へようこそ! これにより、Rust プログラミング言語の公式コンパイラとそのパッケージマネージャーである Cargo がダウンロードおよびインストールされます。 Rustupメタデータとツールチェーンは、次の場所にあるRustupホームディレクトリにインストールされます。 /home/tomoyan/.rustup これは、RUSTUP_HOME 環境変数を使用して変更できます。 次の場所にある Cargo ホームディレクトリ: /home/tomoyan/.cargo これは、CARGO_HOME 環境変数を使用して変更できます。 cargo、rustc、rustup、およびその他のコマンドは、次の場所にある Cargo の bin ディレクトリに追加されます。 /home/tomoyan/.cargo/bin このパスは、次の場所にあるプロファイルファイルを変更することにより、PATH 環境変数に追加されます。 /home/tomoyan/.profile /home/tomoyan/.bash_profile /home/tomoyan/.bashrc rustup セルフアンインストールを使用すると、いつでもアンインストールでき、これらの変更は元に戻されます。
.bashrc に自動ロードの設定を追加する。
$ echo 'source $HOME/.cargo/env' >> ~/.bashrc
bash の設定を反映させる。
$ . ~/.bashrc
動作確認
$ rustup --version
rustup 1.25.1 (bb60b1e89 2022-07-12) info: This is the version for the rustup toolchain manager, not the rustc compiler. info: The currently active `rustc` version is `rustc 1.63.0 (4b91a6ea7 2022-08-08)`
$ rustc --version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
$ cargo --version
cargo 1.63.0 (fd9c4297c 2022-07-01)
実行ファイルのパス確認
$ which rustup rustc cargo
~/.cargo/bin/rustup ~/.cargo/bin/rustc ~/.cargo/bin/cargo
こちらは Fedora のリポジトリからインストールしたコマンドである🤔
$ /bin/rustc --version && /bin/cargo --version
rustc 1.63.0 (Fedora 1.63.0-1.fc36) cargo 1.63.0
Evcxr
インストールのヒント🤔
搭載メモリーが少ないマシンでは、/tmp
の容量不足でビルド出来ない場合がある🤔
$ neofetch
`.::///+:/-. --///+//-:`` dietpi@dietpi-001 `+oooooooooooo: `+oooooooooooo: ----------------- /oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 12 (bookworm) armv6l `+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi Zero W Rev 1.1 `:oooooooo+`` `.oooooooo+- Kernel: 6.1.21+ `:++ooo/. :+ooo+/.` Uptime: 2 days, 5 hours, 8 mins ...` `.----.` ``.. Packages: 1628 (dpkg) .::::-``:::::::::.`-:::-` Shell: zsh 5.9 -:::-` .:::::::-` `-:::- Terminal: /dev/pts/0 `::. `.--.` `` `.---.``.::` CPU: BCM2835 (1) @ 1.100GHz .::::::::` -::::::::` ` Memory: 93MiB / 429MiB .::` .:::::::::- `::::::::::``::. -:::` ::::::::::. ::::::::::.`:::- :::: -::::::::. `-:::::::: :::: -::- .-:::-.``....``.-::-. -::- .. `` .::::::::. `..`.. -:::-` -::::::::::` .:::::` :::::::` -::::::::::` :::::::. .::::::: -::::::::. :::::::: `-:::::` ..--.` ::::::. `...` `...--..` `...` .:::::::::: `.-::::-`
$ df -h
Filesystem Size Used Avail Use% Mounted on /dev/root 115G 36G 75G 33% / devtmpfs 183M 0 183M 0% /dev tmpfs 215M 52K 215M 1% /dev/shm tmpfs 86M 8.3M 78M 10% /run tmpfs 5.0M 8.0K 5.0M 1% /run/lock tmpfs 50M 8.0K 50M 1% /var/log tmpfs 428M 0 428M 0% /tmp /dev/mmcblk0p1 127M 52M 75M 42% /boot tmpfs 43M 4.0K 43M 1% /run/user/1000
$ free -m
total used free shared buff/cache available Mem: 429 109 39 8 307 320 Swap: 3071 0 3071
cargo
実行時にコマンドの前に TMPDIR=/var/tmp
を指定してテンポラリーディレクトリを一時的に変更する🤔
$ TMPDIR=/var/tmp cargo install --locked evcxr_repl $ TMPDIR=/var/tmp cargo install --locked evcxr_jupyter
Rust を最新に更新
$ rustup self update
info: checking for self-update rustup unchanged - 1.27.0
$ rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2024-04-09, rust version 1.77.2 (25ef9e3d8 2024-04-09) info: downloading component 'rust-std' for 'thumbv6m-none-eabi' 9.1 MiB / 9.1 MiB (100 %) 1.9 MiB/s in 5s ETA: 0s info: downloading component 'rust-std' for 'arm-unknown-linux-gnueabihf' 21.0 MiB / 21.0 MiB (100 %) 2.0 MiB/s in 16s ETA: 0s info: downloading component 'rust-src' 2.5 MiB / 2.5 MiB (100 %) 2.4 MiB/s in 1s ETA: 0s info: downloading component 'cargo' 8.0 MiB / 8.0 MiB (100 %) 2.6 MiB/s in 3s ETA: 0s info: downloading component 'clippy' 2.2 MiB / 2.2 MiB (100 %) 2.0 MiB/s in 1s ETA: 0s info: downloading component 'rust-docs' 14.9 MiB / 14.9 MiB (100 %) 2.8 MiB/s in 5s ETA: 0s info: downloading component 'rust-std' 24.3 MiB / 24.3 MiB (100 %) 4.0 MiB/s in 6s ETA: 0s info: downloading component 'rustc' 60.3 MiB / 60.3 MiB (100 %) 1.0 MiB/s in 37s ETA: 0s info: downloading component 'rustfmt' 2.3 MiB / 2.3 MiB (100 %) 1.1 MiB/s in 2s ETA: 0s info: removing previous version of component 'rust-std' for 'thumbv6m-none-eabi' info: removing previous version of component 'rust-std' for 'arm-unknown-linux-gnueabihf' info: removing previous version of component 'rust-src' info: removing previous version of component 'cargo' info: removing previous version of component 'clippy' info: removing previous version of component 'rust-docs' info: removing previous version of component 'rust-std' info: removing previous version of component 'rustc' info: removing previous version of component 'rustfmt' info: installing component 'rust-std' for 'thumbv6m-none-eabi' 9.1 MiB / 9.1 MiB (100 %) 8.6 MiB/s in 1s ETA: 0s info: installing component 'rust-std' for 'arm-unknown-linux-gnueabihf' 21.0 MiB / 21.0 MiB (100 %) 8.6 MiB/s in 2s ETA: 0s info: installing component 'rust-src' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 14.9 MiB / 14.9 MiB (100 %) 4.4 MiB/s in 3s ETA: 0s info: installing component 'rust-std' 24.3 MiB / 24.3 MiB (100 %) 6.3 MiB/s in 4s ETA: 0s info: installing component 'rustc' 60.3 MiB / 60.3 MiB (100 %) 7.3 MiB/s in 10s ETA: 0s info: installing component 'rustfmt' info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' 782.6 KiB / 782.6 KiB (100 %) 32.0 KiB/s in 9s ETA: 0s info: latest update on 2024-04-28, rust version 1.79.0-nightly (aed2187d5 2024-04-27) info: downloading component 'rust-src' 2.7 MiB / 2.7 MiB (100 %) 622.0 KiB/s in 4s ETA: 0s info: downloading component 'rust-std' for 'riscv32imac-unknown-none-elf' 9.3 MiB / 9.3 MiB (100 %) 1.3 MiB/s in 8s ETA: 0s info: downloading component 'rust-std' for 'riscv32imc-unknown-none-elf' 9.2 MiB / 9.2 MiB (100 %) 1.1 MiB/s in 8s ETA: 0s info: downloading component 'llvm-tools' 31.3 MiB / 31.3 MiB (100 %) 2.3 MiB/s in 19s ETA: 0s info: downloading component 'cargo' 8.2 MiB / 8.2 MiB (100 %) 4.0 MiB/s in 2s ETA: 0s info: downloading component 'rust-std' 26.6 MiB / 26.6 MiB (100 %) 3.7 MiB/s in 7s ETA: 0s info: downloading component 'rustc' 64.9 MiB / 64.9 MiB (100 %) 4.2 MiB/s in 16s ETA: 0s info: removing previous version of component 'rust-src' info: removing previous version of component 'rust-std' for 'riscv32imac-unknown-none-elf' info: removing previous version of component 'rust-std' for 'riscv32imc-unknown-none-elf' info: removing previous version of component 'llvm-tools' info: removing previous version of component 'cargo' info: removing previous version of component 'rust-std' info: removing previous version of component 'rustc' info: installing component 'rust-src' info: installing component 'rust-std' for 'riscv32imac-unknown-none-elf' 9.3 MiB / 9.3 MiB (100 %) 8.8 MiB/s in 1s ETA: 0s info: installing component 'rust-std' for 'riscv32imc-unknown-none-elf' 9.2 MiB / 9.2 MiB (100 %) 8.8 MiB/s in 1s ETA: 0s info: installing component 'llvm-tools' 31.3 MiB / 31.3 MiB (100 %) 9.4 MiB/s in 3s ETA: 0s info: installing component 'cargo' info: installing component 'rust-std' 26.6 MiB / 26.6 MiB (100 %) 8.8 MiB/s in 3s ETA: 0s info: installing component 'rustc' 64.9 MiB / 64.9 MiB (100 %) 9.6 MiB/s in 7s ETA: 0s info: checking for self-update stable-x86_64-unknown-linux-gnu updated - rustc 1.77.2 (25ef9e3d8 2024-04-09) (from rustc 1.77.0 (aedd173a2 2024-03-17)) nightly-x86_64-unknown-linux-gnu updated - rustc 1.79.0-nightly (aed2187d5 2024-04-27) (from rustc 1.79.0-nightly (0824b300e 2024-03-24)) info: cleaning up downloads & tmp directories
Evcxr Rust REPL のインストール
依存パッケージのインストール
ビルドには openssl-devel
パッケージが必要になる🤔
$ sudo dnf install openssl-devel
メタデータの期限切れの最終確認: 0:44:53 前の 2024年04月28日 12時31分57秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: openssl-devel x86_64 1:3.2.1-2.fc40 fedora 2.8 M トランザクションの概要 ============================================================================================================== ダウンロードサイズの合計: 2.8 M インストール後のサイズ: 4.3 M これでよろしいですか? [y/N]: y パッケージのダウンロード: openssl-devel-3.2.1-2.fc40.x86_64.rpm 1.8 MB/s | 2.8 MB 00:01 -------------------------------------------------------------------------------------------------------------- 合計 1.0 MB/s | 2.8 MB 00:02 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : openssl-devel-1:3.2.1-2.fc40.x86_64 1/2 整理 : openssl-devel-1:3.2.1-2.fc40.x86_64 2/2 scriptletの実行中: openssl-devel-1:3.2.1-2.fc40.x86_64 2/2 インストール済み: openssl-devel-1:3.2.1-2.fc40.x86_64 完了しました!
ビルドとインストール
REPL を使用する前に Rust のソース コードのローカル コピーをダウンロードする必要がある🤔
$ rustup component add rust-src
info: downloading component 'rust-src' info: installing component 'rust-src'
Evcxr をソースコードからビルドする🤔
$ cargo install --locked evcxr_repl
Updating crates.io index Downloaded evcxr_repl v0.17.0 Downloaded 1 crate (34.7 KB) in 0.44s Installing evcxr_repl v0.17.0 Updating crates.io index Downloaded autocfg v1.2.0 Downloaded backtrace v0.3.71 Downloaded cargo-platform v0.1.8 Downloaded chalk-derive v0.95.0 Downloaded anyhow v1.0.82 Downloaded cc v1.0.95 Downloaded chalk-recursive v0.95.0 Downloaded chalk-ir v0.95.0 Downloaded clap v4.5.4 Downloaded memoffset v0.9.1 Downloaded itoa v1.0.11 Downloaded heck v0.5.0 Downloaded fastrand v2.1.0 Downloaded chalk-solve v0.95.0 Downloaded dissimilar v1.0.8 Downloaded indexmap v2.2.6 Downloaded line-index v0.1.1 Downloaded libmimalloc-sys v0.1.37 Downloaded libloading v0.8.3 Downloaded home v0.5.9 Downloaded either v1.11.0 Downloaded evcxr v0.17.0 Downloaded dashmap v5.5.3 Downloaded colored v2.1.0 Downloaded clap_derive v4.5.4 Downloaded memchr v2.7.2 Downloaded lock_api v0.4.12 Downloaded fixedbitset v0.4.2 Downloaded parking_lot v0.12.2 Downloaded mimalloc v0.1.41 Downloaded ra-ap-rustc_index_macros v0.21.0 Downloaded ra-ap-rustc_index v0.21.0 Downloaded quote v1.0.36 Downloaded parking_lot_core v0.9.10 Downloaded pin-project-lite v0.2.14 Downloaded ra_ap_cfg v0.0.189 Downloaded ra_ap_base_db v0.0.189 Downloaded ra-ap-rustc_lexer v0.21.0 Downloaded notify v6.1.1 Downloaded ra_ap_intern v0.0.189 Downloaded ra_ap_text_edit v0.0.189 Downloaded ra_ap_rustc-dependencies v0.0.189 Downloaded ra_ap_paths v0.0.189 Downloaded ra_ap_limit v0.0.189 Downloaded ra_ap_tt v0.0.189 Downloaded ra_ap_vfs-notify v0.0.189 Downloaded ra_ap_toolchain v0.0.189 Downloaded ra-ap-rustc_parse_format v0.21.0 Downloaded proc-macro2 v1.0.81 Downloaded strsim v0.11.1 Downloaded ra_ap_stdx v0.0.189 Downloaded serde_spanned v0.6.5 Downloaded rust-analyzer-salsa-macros v0.17.0-pre.6 Downloaded ra_ap_test_utils v0.0.189 Downloaded smol_str v0.2.1 Downloaded ra_ap_vfs v0.0.189 Downloaded synstructure v0.13.1 Downloaded thiserror-impl v1.0.59 Downloaded ra-ap-rustc_abi v0.21.0 Downloaded miniz_oxide v0.7.2 Downloaded which v5.0.0 Downloaded ra_ap_mbe v0.0.189 Downloaded ra_ap_profile v0.0.189 Downloaded ra_ap_ide_ssr v0.0.189 Downloaded rowan v0.15.15 Downloaded semver v1.0.22 Downloaded unicode-width v0.1.12 Downloaded triomphe v0.1.11 Downloaded thiserror v1.0.59 Downloaded unicode-properties v0.1.1 Downloaded ra_ap_hir_expand v0.0.189 Downloaded ra_ap_ide_diagnostics v0.0.189 Downloaded serde_derive v1.0.199 Downloaded ra_ap_hir v0.0.189 Downloaded toml v0.8.12 Downloaded ryu v1.0.17 Downloaded unicode-bidi v0.3.15 Downloaded ra_ap_project_model v0.0.189 Downloaded serde v1.0.199 Downloaded ra_ap_syntax v0.0.189 Downloaded pulldown-cmark v0.9.6 Downloaded toml_edit v0.22.12 Downloaded ra_ap_ide_completion v0.0.189 Downloaded unicode-normalization v0.1.23 Downloaded ra_ap_parser v0.0.189 Downloaded winnow v0.6.7 Downloaded serde_json v1.0.116 Downloaded ra_ap_ide_db v0.0.189 Downloaded petgraph v0.6.4 Downloaded ra_ap_ide v0.0.189 Downloaded ra_ap_hir_def v0.0.189 Downloaded syn v2.0.60 Downloaded ra_ap_ide_assists v0.0.189 Downloaded object v0.32.2 Downloaded regex-syntax v0.8.3 Downloaded rustix v0.38.34 Downloaded ra_ap_hir_ty v0.0.189 Downloaded rust-analyzer-salsa v0.17.0-pre.6 Downloaded 98 crates (6.8 MB) in 5.73s Compiling proc-macro2 v1.0.81 Compiling unicode-ident v1.0.12 Compiling libc v0.2.153 Compiling cfg-if v1.0.0 Compiling smallvec v1.13.2 Compiling once_cell v1.19.0 Compiling hashbrown v0.14.3 Compiling crossbeam-utils v0.8.19 Compiling autocfg v1.2.0 Compiling quote v1.0.36 Compiling syn v2.0.60 Compiling serde v1.0.199 Compiling log v0.4.21 Compiling either v1.11.0 Compiling rustc-hash v1.1.0 Compiling lock_api v0.4.12 Compiling parking_lot_core v0.9.10 Compiling itertools v0.12.1 Compiling equivalent v1.0.1 Compiling scopeguard v1.2.0 Compiling indexmap v2.2.6 Compiling tracing-core v0.1.32 Compiling bitflags v1.3.2 Compiling pin-project-lite v0.2.14 Compiling crossbeam-channel v0.5.12 Compiling bitflags v2.5.0 Compiling always-assert v0.1.3 Compiling text-size v1.1.1 Compiling jod-thread v0.1.2 Compiling ra_ap_stdx v0.0.189 Compiling dashmap v5.5.3 Compiling arrayvec v0.7.4 Compiling synstructure v0.13.1 Compiling unicode-properties v0.1.1 Compiling unicode-xid v0.2.4 Compiling ra-ap-rustc_lexer v0.21.0 Compiling countme v3.0.1 Compiling perf-event-open-sys v1.0.1 Compiling memoffset v0.9.1 Compiling stable_deref_trait v1.2.0 Compiling perf-event v0.4.7 Compiling la-arena v0.3.1 Compiling smol_str v0.2.1 Compiling fst v0.4.7 Compiling ra_ap_profile v0.0.189 Compiling drop_bomb v0.1.5 Compiling ra_ap_limit v0.0.189 Compiling nohash-hasher v0.2.0 Compiling rowan v0.15.15 Compiling serde_derive v1.0.199 Compiling tracing-attributes v0.1.27 Compiling ra-ap-rustc_index_macros v0.21.0 Compiling ra-ap-rustc_index v0.21.0 Compiling ra-ap-rustc_parse_format v0.21.0 Compiling ra_ap_tt v0.0.189 Compiling ra_ap_text_edit v0.0.189 Compiling tracing v0.1.40 Compiling ra-ap-rustc_abi v0.21.0 Compiling ra_ap_paths v0.0.189 Compiling heck v0.4.1 Compiling cov-mark v2.0.0-pre.1 Compiling rust-analyzer-salsa-macros v0.17.0-pre.6 Compiling ra_ap_rustc-dependencies v0.0.189 Compiling ra_ap_parser v0.0.189 Compiling ra_ap_vfs v0.0.189 Compiling parking_lot v0.12.2 Compiling oorandom v11.1.3 Compiling dissimilar v1.0.8 Compiling ra_ap_test_utils v0.0.189 Compiling ra_ap_cfg v0.0.189 Compiling triomphe v0.1.11 Compiling lazy_static v1.4.0 Compiling chalk-derive v0.95.0 Compiling ra_ap_syntax v0.0.189 Compiling rust-analyzer-salsa v0.17.0-pre.6 Compiling memchr v2.7.2 Compiling fixedbitset v0.4.2 Compiling ra_ap_base_db v0.0.189 Compiling ra_ap_mbe v0.0.189 Compiling petgraph v0.6.4 Compiling chalk-ir v0.95.0 Compiling ra_ap_intern v0.0.189 Compiling ena v0.14.2 Compiling ra_ap_hir_expand v0.0.189 Compiling chalk-solve v0.95.0 Compiling crossbeam-epoch v0.9.18 Compiling rayon-core v1.12.1 Compiling crossbeam-deque v0.8.5 Compiling chalk-recursive v0.95.0 Compiling ra_ap_hir_def v0.0.189 Compiling typed-arena v2.0.2 Compiling scoped-tls v1.0.1 Compiling cc v1.0.95 Compiling rayon v1.10.0 Compiling line-index v0.1.1 Compiling ra_ap_hir_ty v0.0.189 Compiling serde_json v1.0.116 Compiling rustix v0.38.34 Compiling version_check v0.9.4 Compiling unicase v2.7.0 Compiling itoa v1.0.11 Compiling linux-raw-sys v0.4.13 Compiling home v0.5.9 Compiling ryu v1.0.17 Compiling tinyvec_macros v0.1.1 Compiling tinyvec v1.6.0 Compiling ra_ap_hir v0.0.189 Compiling ra_ap_ide_db v0.0.189 Compiling utf8parse v0.2.1 Compiling camino v1.1.6 Compiling semver v1.0.22 Compiling thiserror v1.0.59 Compiling pulldown-cmark v0.9.6 Compiling unicode-normalization v0.1.23 Compiling thiserror-impl v1.0.59 Compiling inotify-sys v0.1.5 Compiling anyhow v1.0.82 Compiling unicode-bidi v0.3.15 Compiling percent-encoding v2.3.1 Compiling cfg_aliases v0.1.1 Compiling same-file v1.0.6 Compiling walkdir v2.5.0 Compiling nix v0.28.0 Compiling which v5.0.0 Compiling form_urlencoded v1.2.1 Compiling idna v0.5.0 Compiling inotify v0.9.6 Compiling anstyle-parse v0.2.3 Compiling ra_ap_toolchain v0.0.189 Compiling libmimalloc-sys v0.1.37 Compiling backtrace v0.3.71 Compiling toml_datetime v0.6.5 Compiling cargo-platform v0.1.8 Compiling serde_spanned v0.6.5 Compiling filetime v0.2.23 Compiling mio v0.8.11 Compiling colorchoice v1.0.0 Compiling gimli v0.28.1 Compiling option-ext v0.2.0 Compiling anstyle v1.0.6 Compiling winnow v0.6.7 Compiling regex-syntax v0.8.3 Compiling unicode-width v0.1.12 Compiling anstyle-query v1.0.2 Compiling adler v1.0.2 Compiling miniz_oxide v0.7.2 Compiling anstream v0.6.13 Compiling regex-automata v0.4.6 Compiling toml_edit v0.22.12 Compiling dirs-sys v0.4.1 Compiling addr2line v0.21.0 Compiling notify v6.1.1 Compiling cargo_metadata v0.18.1 Compiling pulldown-cmark-to-cmark v10.0.4 Compiling url v2.5.0 Compiling evcxr v0.17.0 Compiling ra_ap_ide_diagnostics v0.0.189 Compiling ra_ap_ide_completion v0.0.189 Compiling ra_ap_ide_assists v0.0.189 Compiling ra_ap_ide_ssr v0.0.189 Compiling object v0.32.2 Compiling nibble_vec v0.1.0 Compiling rustc-demangle v0.1.23 Compiling heck v0.5.0 Compiling clap_lex v0.7.0 Compiling dot v0.1.4 Compiling strsim v0.11.1 Compiling fastrand v2.1.0 Compiling endian-type v0.1.2 Compiling unicode-segmentation v1.11.0 Compiling yansi v0.5.1 Compiling ariadne v0.3.0 Compiling tempfile v3.10.1 Compiling radix_trie v0.2.1 Compiling clap_builder v4.5.2 Compiling ra_ap_ide v0.0.189 Compiling clap_derive v4.5.4 Compiling ra_ap_project_model v0.0.189 Compiling ra_ap_vfs-notify v0.0.189 Compiling toml v0.8.12 Compiling dirs v5.0.1 Compiling regex v1.10.4 Compiling fd-lock v3.0.13 Compiling nix v0.26.4 Compiling sig v1.0.0 Compiling libloading v0.8.3 Compiling json v0.12.4 Compiling evcxr_input v1.0.0 Compiling rustyline v12.0.0 Compiling ctrlc v3.4.4 Compiling mimalloc v0.1.41 Compiling clap v4.5.4 Compiling colored v2.1.0 Compiling evcxr_repl v0.17.0 Finished release [optimized] target(s) in 8m 40s Replacing /home/tomoyan/.cargo/bin/evcxr Replaced package `evcxr_repl v0.15.1` with `evcxr_repl v0.17.0` (executable `evcxr`)
EvCxR Jupyter Kernel
本家: evcxr/evcxr_jupyter at main · google/evcxr
$ cargo install evcxr_jupyter
Updating crates.io index Installing evcxr_jupyter v0.12.0 Downloaded getrandom v0.2.7 Downloaded 1 crate (28.9 KB) in 0.64s Compiling libc v0.2.126 Compiling cfg-if v1.0.0 Compiling autocfg v1.1.0 Compiling proc-macro2 v1.0.39 Compiling unicode-ident v1.0.1 Compiling syn v1.0.96 Compiling log v0.4.17 Compiling serde_derive v1.0.137 Compiling lazy_static v1.4.0 Compiling once_cell v1.12.0 Compiling rustc-hash v1.1.0 Compiling serde v1.0.137 Compiling hashbrown v0.11.2 Compiling crossbeam-utils v0.8.8 Compiling either v1.6.1 Compiling scopeguard v1.1.0 Compiling bitflags v1.3.2 Compiling text-size v1.1.0 Compiling parking_lot_core v0.8.5 Compiling pin-project-lite v0.2.9 Compiling ra_ap_la-arena v0.0.76 Compiling smallvec v1.8.0 Compiling fst v0.4.7 Compiling unicode-segmentation v1.9.0 Compiling unicode-xid v0.2.3 Compiling dissimilar v1.0.4 Compiling drop_bomb v0.1.5 Compiling ra_ap_paths v0.0.76 Compiling cov-mark v2.0.0-pre.1 Compiling cc v1.0.73 Compiling version_check v0.9.4 Compiling oorandom v11.1.3 Compiling fixedbitset v0.2.0 Compiling rayon-core v1.9.3 Compiling ra_ap_limit v0.0.76 Compiling anymap v0.12.1 Compiling scoped-tls v1.0.0 Compiling arrayvec v0.7.2 Compiling memchr v2.5.0 Compiling typenum v1.15.0 Compiling pkg-config v0.3.25 Compiling toml v0.2.1 Compiling error-chain v0.10.0 Compiling tinyvec_macros v0.1.0 Compiling serde_json v1.0.81 Compiling pulldown-cmark v0.8.0 Compiling matches v0.1.9 Compiling camino v1.0.9 Compiling semver v1.0.10 Compiling same-file v1.0.6 Compiling percent-encoding v2.1.0 Compiling ryu v1.0.10 Compiling itoa v1.0.2 Compiling anyhow v1.0.57 Compiling unicode-bidi v0.3.8 Compiling adler v1.0.2 Compiling gimli v0.26.1 Compiling home v0.5.3 Compiling fastrand v1.7.0 Compiling jod-thread v0.1.2 Compiling regex-syntax v0.6.26 Compiling zmq v0.9.2 Compiling subtle v2.4.1 Compiling rustc-demangle v0.1.21 Compiling remove_dir_all v0.5.3 Compiling dot v0.1.4 Compiling cpufeatures v0.2.2 Compiling evcxr_input v1.0.0 Compiling opaque-debug v0.3.0 Compiling json v0.12.4 Compiling hex v0.4.3 Compiling instant v0.1.12 Compiling libloading v0.7.3 Compiling indexmap v1.8.2 Compiling memoffset v0.6.5 Compiling lock_api v0.4.7 Compiling crossbeam-epoch v0.9.8 Compiling rayon v1.5.3 Compiling num-traits v0.2.15 Compiling num-integer v0.1.45 Compiling tracing-core v0.1.27 Compiling itertools v0.10.3 Compiling ra_ap_text_edit v0.0.76 Compiling rustc-ap-rustc_lexer v725.0.0 Compiling heck v0.3.3 Compiling ra_ap_parser v0.0.76 Compiling expect-test v1.3.0 Compiling cmake v0.1.48 Compiling generic-array v0.14.5 Compiling unicase v2.6.0 Compiling libmimalloc-sys v0.1.25 Compiling backtrace v0.3.65 Compiling metadeps v1.1.2 Compiling tinyvec v1.6.0 Compiling walkdir v2.3.2 Compiling form_urlencoded v1.0.1 Compiling miniz_oxide v0.5.3 Compiling ra_ap_toolchain v0.0.76 Compiling addr2line v0.17.0 Compiling regex v1.5.6 Compiling zeromq-src v0.1.10+4.3.2 Compiling unicode-normalization v0.1.19 Compiling num_cpus v1.13.1 Compiling perf-event-open-sys v1.0.1 Compiling inotify-sys v0.1.5 Compiling filetime v0.2.16 Compiling dirs-sys v0.3.7 Compiling time v0.1.44 Compiling atty v0.2.14 Compiling sig v1.0.0 Compiling which v4.2.5 Compiling tempfile v3.3.0 Compiling getrandom v0.2.7 Compiling quote v1.0.18 Compiling always-assert v0.1.2 Compiling ena v0.14.0 Compiling mio v0.7.14 Compiling crossbeam-channel v0.5.4 Compiling zmq-sys v0.11.0 Compiling object v0.28.4 Compiling idna v0.2.3 Compiling dashmap v4.0.2 Compiling perf-event v0.4.7 Compiling inotify v0.9.6 Compiling dirs v3.0.2 Compiling colored v2.0.0 Compiling uuid v0.8.2 Compiling ra_ap_vfs v0.0.76 Compiling petgraph v0.5.1 Compiling parking_lot v0.11.2 Compiling ra_ap_stdx v0.0.76 Compiling mimalloc v0.1.29 Compiling digest v0.9.0 Compiling crypto-mac v0.11.1 Compiling block-buffer v0.9.0 Compiling url v2.2.2 Compiling countme v2.0.4 Compiling notify v5.0.0-pre.13 Compiling crossbeam-deque v0.8.1 Compiling chrono v0.4.19 Compiling synstructure v0.12.6 Compiling tracing-attributes v0.1.21 Compiling salsa-macros v0.17.0-pre.2 Compiling pulldown-cmark-to-cmark v6.0.4 Compiling hmac v0.11.0 Compiling sha2 v0.9.9 Compiling ra_ap_profile v0.0.76 Compiling rowan v0.14.1 Compiling chalk-derive v0.71.0 Compiling tracing v0.1.35 Compiling salsa v0.17.0-pre.1 Compiling ra_ap_test_utils v0.0.76 Compiling ra_ap_vfs-notify v0.0.76 Compiling chalk-ir v0.71.0 Compiling smol_str v0.1.23 Compiling cargo-platform v0.1.2 Compiling chalk-solve v0.71.0 Compiling ra_ap_tt v0.0.76 Compiling ra_ap_syntax v0.0.76 Compiling cargo_metadata v0.14.2 Compiling ra_ap_cfg v0.0.76 Compiling chalk-recursive v0.71.0 Compiling ra_ap_mbe v0.0.76 Compiling ra_ap_base_db v0.0.76 Compiling ra_ap_hir_expand v0.0.76 Compiling ra_ap_project_model v0.0.76 Compiling ra_ap_hir_def v0.0.76 Compiling ra_ap_hir_ty v0.0.76 Compiling ra_ap_hir v0.0.76 Compiling ra_ap_ide_db v0.0.76 Compiling ra_ap_ide_completion v0.0.76 Compiling ra_ap_ide_ssr v0.0.76 Compiling ra_ap_ide_diagnostics v0.0.76 Compiling ra_ap_ide_assists v0.0.76 Compiling ra_ap_ide v0.0.76 Compiling evcxr v0.12.0 Compiling evcxr_jupyter v0.12.0 Finished release [optimized] target(s) in 8m 03s Installing /home/tomoyan/.cargo/bin/evcxr_jupyter Installed package `evcxr_jupyter v0.12.0` with `evcxr_jupyter v0.12.0` (executable `evcxr_jupyter`)
Jupyter Kernel としてインストールする🤤
$ evcxr_jupyter --install
Writing /home/tomoyan/.local/share/jupyter/kernels/rust/kernel.json Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-32x32.png Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-64x64.png Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-LICENSE.md Writing /home/tomoyan/.local/share/jupyter/kernels/rust/kernel.js Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint.js Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint.css Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint-LICENSE Writing /home/tomoyan/.local/share/jupyter/kernels/rust/version.txt Installation complete
トラブルシューティング
[evcxr_jupyter] failed to execute command: No such file or directory (os error 2) is `cmake` not installed? でビルドがエラー終了する
$ cargo install evcxr_jupyter
Updating crates.io index Downloaded evcxr_jupyter v0.13.0 Downloaded 1 crate (49.1 KB) in 1.35s Installing evcxr_jupyter v0.13.0 Downloaded metadeps v1.1.2 ... Compiling colored v2.0.0 Compiling uuid v1.1.2 error: failed to run custom build command for `zmq-sys v0.11.0` Caused by: process didn't exit successfully: `/tmp/cargo-installQKyvMM/release/build/zmq-sys-79b3b1ba6e03ecd7/build-script-main` (exit status: 101) --- stdout cargo:rerun-if-changed=build/main.rs cargo:rerun-if-env-changed=PROFILE CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None HOST_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None HOST_CMAKE_GENERATOR = None CMAKE_GENERATOR = None CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None HOST_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_x86_64-unknown-linux-gnu = None CMAKE_x86_64_unknown_linux_gnu = None HOST_CMAKE = None CMAKE = None running: "cmake" "/home/tomoyan/.cargo/registry/src/github.com-1ecc6299db9ec823/zeromq-src-0.1.10+4.3.2/vendor" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_C_STANDARD=99" "-DZMQ_BUILD_TESTS=OFF" "-DENABLE_DRAFTS=OFF" "-DENABLE_CURVE=ON" "-DCMAKE_BUILD_TYPE=Release" "-DWITH_PERF_TOOL=OFF" "-DBUILD_SHARED=OFF" "-DBUILD_STATIC=ON" "-DWITH_LIBSODIUM=OFF" "-DCMAKE_INSTALL_PREFIX=/tmp/cargo-installQKyvMM/release/build/zmq-sys-9e57c480b909b261/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" --- stderr thread 'main' panicked at ' failed to execute command: No such file or directory (os error 2) is `cmake` not installed? build script failed, must exit now', /home/tomoyan/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.48/src/lib.rs:975:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: failed to compile `evcxr_jupyter v0.13.0`, intermediate artifacts can be found at `/tmp/cargo-installQKyvMM`
cmake パッケージをインストールしてから再実行する🤔
$ sudo dnf install cmake
メタデータの期限切れの最終確認: 0:28:59 時間前の 2022年09月02日 21時29分01秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: cmake x86_64 3.22.2-1.fc36 fedora 6.3 M 依存関係のインストール: cmake-data noarch 3.22.2-1.fc36 fedora 1.6 M cmake-filesystem x86_64 3.22.2-1.fc36 fedora 18 k cmake-rpm-macros noarch 3.22.2-1.fc36 fedora 17 k jsoncpp x86_64 1.9.5-2.fc36 fedora 98 k rhash x86_64 1.4.2-2.fc36 fedora 185 k vim-filesystem noarch 2:9.0.246-1.fc36 updates 20 k トランザクションの概要 ============================================================================================================== インストール 7 パッケージ ダウンロードサイズの合計: 8.2 M インストール後のサイズ: 31 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/7): cmake-filesystem-3.22.2-1.fc36.x86_64.rpm 93 kB/s | 18 kB 00:00 (2/7): cmake-rpm-macros-3.22.2-1.fc36.noarch.rpm 197 kB/s | 17 kB 00:00 (3/7): jsoncpp-1.9.5-2.fc36.x86_64.rpm 246 kB/s | 98 kB 00:00 (4/7): rhash-1.4.2-2.fc36.x86_64.rpm 672 kB/s | 185 kB 00:00 (5/7): vim-filesystem-9.0.246-1.fc36.noarch.rpm 120 kB/s | 20 kB 00:00 (6/7): cmake-data-3.22.2-1.fc36.noarch.rpm 1.2 MB/s | 1.6 MB 00:01 (7/7): cmake-3.22.2-1.fc36.x86_64.rpm 2.1 MB/s | 6.3 MB 00:03 -------------------------------------------------------------------------------------------------------------- 合計 1.7 MB/s | 8.2 MB 00:04 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : cmake-rpm-macros-3.22.2-1.fc36.noarch 1/7 インストール中 : cmake-filesystem-3.22.2-1.fc36.x86_64 2/7 インストール中 : vim-filesystem-2:9.0.246-1.fc36.noarch 3/7 インストール中 : rhash-1.4.2-2.fc36.x86_64 4/7 インストール中 : jsoncpp-1.9.5-2.fc36.x86_64 5/7 インストール中 : cmake-data-3.22.2-1.fc36.noarch 6/7 インストール中 : cmake-3.22.2-1.fc36.x86_64 7/7 scriptletの実行中: cmake-3.22.2-1.fc36.x86_64 7/7 検証 : cmake-3.22.2-1.fc36.x86_64 1/7 検証 : cmake-data-3.22.2-1.fc36.noarch 2/7 検証 : cmake-filesystem-3.22.2-1.fc36.x86_64 3/7 検証 : cmake-rpm-macros-3.22.2-1.fc36.noarch 4/7 検証 : jsoncpp-1.9.5-2.fc36.x86_64 5/7 検証 : rhash-1.4.2-2.fc36.x86_64 6/7 検証 : vim-filesystem-2:9.0.246-1.fc36.noarch 7/7 インストール済み: cmake-3.22.2-1.fc36.x86_64 cmake-data-3.22.2-1.fc36.noarch cmake-filesystem-3.22.2-1.fc36.x86_64 cmake-rpm-macros-3.22.2-1.fc36.noarch jsoncpp-1.9.5-2.fc36.x86_64 rhash-1.4.2-2.fc36.x86_64 vim-filesystem-2:9.0.246-1.fc36.noarch 完了しました!
[evcxr_jupyter] CMake Error at CMakeLists.txt:2 (project): The CMAKE_CXX_COMPILER: c++ is not a full path and was not found in the PATH. でビルドがエラー終了する
$ cargo install evcxr_jupyter
Updating crates.io index Downloaded evcxr_jupyter v0.13.0 Downloaded 1 crate (49.1 KB) in 1.35s Installing evcxr_jupyter v0.13.0 Downloaded metadeps v1.1.2 ... Compiling notify v5.0.0-pre.15 Compiling chrono v0.4.22 error: failed to run custom build command for `zmq-sys v0.11.0` Caused by: process didn't exit successfully: `/tmp/cargo-installsjfkku/release/build/zmq-sys-79b3b1ba6e03ecd7/build-script-main` (exit status: 101) --- stdout cargo:rerun-if-changed=build/main.rs cargo:rerun-if-env-changed=PROFILE CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None HOST_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None HOST_CMAKE_GENERATOR = None CMAKE_GENERATOR = None CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None HOST_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_x86_64-unknown-linux-gnu = None CMAKE_x86_64_unknown_linux_gnu = None HOST_CMAKE = None CMAKE = None running: "cmake" "/home/tomoyan/.cargo/registry/src/github.com-1ecc6299db9ec823/zeromq-src-0.1.10+4.3.2/vendor" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_C_STANDARD=99" "-DZMQ_BUILD_TESTS=OFF" "-DENABLE_DRAFTS=OFF" "-DENABLE_CURVE=ON" "-DCMAKE_BUILD_TYPE=Release" "-DWITH_PERF_TOOL=OFF" "-DBUILD_SHARED=OFF" "-DBUILD_STATIC=ON" "-DWITH_LIBSODIUM=OFF" "-DCMAKE_INSTALL_PREFIX=/tmp/cargo-installsjfkku/release/build/zmq-sys-9e57c480b909b261/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" -- The C compiler identification is GNU 12.2.1 -- The CXX compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Configuring incomplete, errors occurred! See also "/tmp/cargo-installsjfkku/release/build/zmq-sys-9e57c480b909b261/out/build/CMakeFiles/CMakeOutput.log". See also "/tmp/cargo-installsjfkku/release/build/zmq-sys-9e57c480b909b261/out/build/CMakeFiles/CMakeError.log". --- stderr CMake Error at CMakeLists.txt:2 (project): The CMAKE_CXX_COMPILER: c++ is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. thread 'main' panicked at ' command did not execute successfully, got: exit status: 1 build script failed, must exit now', /home/tomoyan/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.48/src/lib.rs:975:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: failed to compile `evcxr_jupyter v0.13.0`, intermediate artifacts can be found at `/tmp/cargo-installsjfkku`
gcc-c++ パッケージをインストールしてから再実行する🤔
$ sudo dnf install gcc-c++
メタデータの期限切れの最終確認: 0:58:28 時間前の 2022年09月02日 21時29分01秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: gcc-c++ x86_64 12.2.1-1.fc36 updates 13 M 依存関係のインストール: libstdc++-devel x86_64 12.2.1-1.fc36 updates 2.4 M トランザクションの概要 ============================================================================================================== インストール 2 パッケージ ダウンロードサイズの合計: 15 M インストール後のサイズ: 47 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/2): libstdc++-devel-12.2.1-1.fc36.x86_64.rpm 1.7 MB/s | 2.4 MB 00:01 (2/2): gcc-c++-12.2.1-1.fc36.x86_64.rpm 3.1 MB/s | 13 MB 00:04 -------------------------------------------------------------------------------------------------------------- 合計 2.6 MB/s | 15 MB 00:05 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : libstdc++-devel-12.2.1-1.fc36.x86_64 1/2 インストール中 : gcc-c++-12.2.1-1.fc36.x86_64 2/2 scriptletの実行中: gcc-c++-12.2.1-1.fc36.x86_64 2/2 検証 : gcc-c++-12.2.1-1.fc36.x86_64 1/2 検証 : libstdc++-devel-12.2.1-1.fc36.x86_64 2/2 インストール済み: gcc-c++-12.2.1-1.fc36.x86_64 libstdc++-devel-12.2.1-1.fc36.x86_64 完了しました!