2
0

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のtrunkのインストール/ビルドが失敗するのをゴリ押しで解決する

Posted at

ゴリ押しは正義だった

一向に解決しないビルド問題

Rust初心者の僕、Yewを触ろうとするもCargoでtrunkがビルドできない問題に直面。
検索はもちろん、Perplexityなどで調べた方法を次々実践するも解決せず・・・

試した方法

  • OpenSSLのインストール
  • ↑の環境変数を適切に設定する
  • ダメだったのでvcrpkgで改めてインストール
  • 全然ダメ!!!

突然の解決

改めて公式サイトのInstallationを確認していたら、binstallなる導入方法もあるとのことなので実践、無事解決した。
https://github.com/cargo-bins/cargo-binstall
※ binstallは自前でビルドする代わりにバイナリをそのまま持ってくるらしい

成功した方法

  1. binstallをcargo install cargo-binstall
  2. trunkをcargo binstall trunk
  3. 何の問題もなくインストール完了!動作も問題なし!

おわりに

初めての記事がこんなものでどうかと思ったが、意外と情報がなさそうなので投稿してみた。
肝心の問題の原因はさっぱりなのでそこはモヤモヤするものの、いったん使えるようにしてくれたbinstallには感謝・・・

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?