1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

さくらスンダードにrustをインストールする

Last updated at Posted at 2025-09-16

さくらスンダードにrustをインストールします。
OSがfreebsd版でターミナルがcshの場合の話です

ダウンロード

-oで保存先を指定します

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh

インストール

※そのままrustup-init.shを動かすとtmpフォルダにアクセスしようとしてパーミッションエラーが出るので、
自分のフォルダ以下にテンポラリフォルダを作り指定する

chmod 755
mkdir $HOME/tmp
setenv TMPDIR $HOMETMP
./rustup-init.sh

インストール確認

$HOME/.cargo/bin/rustc --version
$HOME/.cargo/bin/cargo --version

.cshrcへパスを追加

.cshrc
set path=($path $HOME/.cargo/bin)

実際にインストールした結果

rust_install.png

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?