LoginSignup
0
0

More than 3 years have passed since last update.

オフライン環境にcargo-profilerをインストール

Posted at
  1. インターネット接続のある計算機で、cargo-profilerのソースをダウンロードしておく
    git clone https://github.com/svenstaro/cargo-profiler.git

  2. そこでビルドしておく
    cargo build

  3. ローカルのリポジトリのアーカイブを作成
    cd
    tar cvzf cargo.repo.tar.gz ./.cargo

  4. cargo-profilerのソース一式と、cargo.repo.tar.gzをインストール先の計算機にコピー
    インストール先の計算機のホームディレクトリでリポジトリを展開
    tar xvzf cargo.repo.tar.gz

  5. インストール先で、ソースも展開。そこでオフラインオプション付でビルド
    cargo --offline build --release

  6. インストール
    cargo --offline install --path .

  7. .bashrcに以下のようなコードを追加してcargo-profilerにパスを通す
    export PATH=$PATH:~/.cargo/bin

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0