參考文章 : [Sui Move教學文檔](https://docs.sui.io/build/install) C槽預留空間 : 大於20GB比較保險 ### 1. [Git](https://git-scm.com/download/) ![](https://hackmd.io/_uploads/HkI8xUGih.png) ![](https://hackmd.io/_uploads/HkdLqFXL2.png) ![](https://hackmd.io/_uploads/S1etqYQI2.png) ### 2. [CMake](https://cmake.org/download/) ![](https://hackmd.io/_uploads/HJY7g8fon.png) ![](https://hackmd.io/_uploads/Hk-u8KQI3.png) ### 3. [Visual Studio 2022](https://visualstudio.microsoft.com/zh-hant/downloads/) ![](https://hackmd.io/_uploads/Sk01-Izsh.png) 不必安裝全部的東西,所以下載Build Tools即可 進去後往下拉至Visual Studio工具,展開並找到Build Tools for Visual Studio 2022,並點擊旁邊的下載按鈕 ![](https://i.imgur.com/EE9ax1h.png) 只需要安裝 使用C++的桌面開發、.NET桌面建置工具、通用Windows平台建置工具 ![](https://i.imgur.com/gydCket.png) 因預設路徑是放在C槽,建議可以存放於D槽 我在D槽建一個Visual Studio 2022的目錄,但Visual Studio IDE存放的目錄不能有其他檔案,所以又建立一個BuildTools的目錄給他放。 ![](https://hackmd.io/_uploads/SyhbzoOj2.png) ### 4. [Protocol Buffers](https://github.com/protocolbuffers/protobuf/releases) ![](https://hackmd.io/_uploads/BJ8CyLzjn.png) ![](https://hackmd.io/_uploads/HJ-OvtX8h.png) 安裝好後,將 \bin 目錄添加到 Windows PATH 環境變量中。 ![](https://hackmd.io/_uploads/ByhX_YQLn.png) ### 5. [Rust](https://www.rust-lang.org/tools/install) ![](https://hackmd.io/_uploads/HyTLbIGoh.png) ![](https://hackmd.io/_uploads/rJRi_FQIh.png) 補充 Rust更新至最新版本 ``` rustup update ``` ![](https://hackmd.io/_uploads/SyA9KjOsn.png) ### 6. [LLVM](https://releases.llvm.org/) ![](https://hackmd.io/_uploads/ryCeGIMsh.png) ![](https://hackmd.io/_uploads/SyneYYQIh.png) 安裝好後,將 \bin 目錄添加到 Windows PATH 環境變量中。 ![](https://hackmd.io/_uploads/Bku4ttQL3.png) ### 7. Sui Move (安裝大概要花30幾分鐘左右) ![](https://hackmd.io/_uploads/BkbtMUfsn.png) 安裝 Sui 二進製文件 ``` cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui ``` ![](https://hackmd.io/_uploads/H1yJ9Y7I2.png) - 補充 : 如果在安裝Sui Move時出現類似下方這個錯誤,則把LLVM改安裝在C槽,然後設置環境變數,最後重跑安裝Sui Move指令 ![](https://hackmd.io/_uploads/BkQ1CZX3n.png) 安裝完成後輸入sui看看是否有指令出現 ``` sui ``` ![](https://hackmd.io/_uploads/SkDz5K7L3.png) 這樣sui move安裝就完成了! # IDE配置 ### 1. 下載 [Visual Studio Code](https://code.visualstudio.com/) ![](https://hackmd.io/_uploads/By11y97I3.png) ### 2. Visual Studio Code安裝 Sui Move套件 [Sui Move Analyzer 安裝](https://treasure-geography-e9d.notion.site/Sui-Move-Analyzer-074d673a9b084f2db585c0606c468c9c) ### 3. clone sui 原始碼 方便我們查看 ``` git clone https://github.com/MystenLabs/sui.git --branch devnet ``` ![](https://hackmd.io/_uploads/BJ2Ng3zo2.png) ### 4. 安裝Chrome的插件錢包 [Sui Wallet](https://chrome.google.com/webstore/detail/sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil) ![](https://hackmd.io/_uploads/H1Mqyqm8n.png)