<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ### **環境安裝** **** #### **在 Linux 或 macOS 上安裝`rustup`** 如果你使用 Linux 或 macOS,打開終端并輸入如下命令: ``` $ curl https://sh.rustup.rs -sSf | sh ``` 或者使用命令: ``` $ curl -f -L https://static.rust-lang.org/rustup.sh -O $ sh rustup.sh ``` 此命令下載一個腳本并開始安裝`rustup`工具,這會安裝最新穩定版 `Rust`。過程中可能會提示你輸入密碼。如果安裝成功,將會出現如下內容: ``` Rust is installed now. Great! ``` 此安裝腳本自動將 Rust 加入系統 PATH 環境變量中,在下一次登錄時生效。 手動將 Rust 加入系統 PATH 變量中,立即生效的命令 ``` $ source $HOME/.cargo/env ``` 或者,可以在*~/.bash\_profile*文件中增加如下行: ``` $ export PATH="$HOME/.cargo/bin:$PATH" $ echo 'source /etc/profile' >> ~/.bashrc ``` Rust 需要c編譯器gcc的支持 ``` //linux 下執行 $ yum install gcc //Mac OS下執行 $ brew install gcc ``` #### **更新和卸載** 通過shell腳本更新Rust。 可以通過 `rustup --help` 查看rustup支持的參數 ``` rustup update ``` 為了卸載 `Rust`和`rustup`,在 shell 中運行如下卸載腳本: ``` $ rustup self uninstall ``` 查看版本 ``` $ rustup --version ``` #### 安裝nightly(開發版本) ``` $ rustup install nightly ``` 查看 ``` $ rustup toolchain list ``` 可以在項目目錄使用`rustup override`來設置當前目錄`rustup`使用 nightly 工具鏈作: ``` $ cd ~/projects/needs-nightly //工作目錄 $ rustup override set nightly ``` ### **編輯器安裝** #### **IntelliJ Rust 插件** >使用`IntelliJ clion` + [IntelliJ Rust](https://link.zhihu.com/?target=https%3A//intellij-rust.github.io/) 下載安裝好 [CLion](https://link.zhihu.com/?target=https%3A//www.jetbrains.com/clion/download) 后,在 `Settings -> Plugins -> Install JetBrains Plugins` 里查找 Rust 即可下載安裝 IntelliJ Rust 插件。安裝好插件后可以通過 `Settings -> Languages & Framworks -> Rust`配置標準庫路徑和其他選項。 ### **Dockerfile安裝Rust** ``` From centos:7 WORKDIR /usr/src/ Run yum install -y net-tools \ iproute \ dos2unix \ vim \ gcc Run curl -f -L https://static.rust-lang.org/rustup.sh -O \ && sh rustup.sh \ #&& source $HOME/.cargo/env \ &&echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /etc/profile \ && source /etc/profile \ && echo 'source /etc/profile"' >> ~/.bashrc \ && ldconfig \ && rustup update CMD /bin/bash ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看