mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-06-16 05:30:54 +00:00
fix style
This commit is contained in:
@@ -3,9 +3,9 @@ title: FAQ für Windows
|
||||
weight: 40
|
||||
---
|
||||
|
||||
### Herunterladen des Pakets vcpkg fehlgeschlagen
|
||||
## Herunterladen des Pakets vcpkg fehlgeschlagen
|
||||
|
||||
#### Fehler
|
||||
### Fehler
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
#### Lösung
|
||||
### Lösung
|
||||
|
||||
Verwenden Sie einen Browser, um [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz) herunterzuladen, verschieben Sie es dann in `vcpkg/downloads` und installieren Sie es neu.
|
||||
|
||||
|
||||
|
||||
### Paket in Cargo.lock nicht vorhanden
|
||||
## Paket in Cargo.lock nicht vorhanden
|
||||
|
||||
#### Fehler
|
||||
### Fehler
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
Vielleicht hat der Autor `git force push` benutzt und der vorherige Beitrag wurde überschrieben.
|
||||
|
||||
#### Lösung
|
||||
### Lösung
|
||||
|
||||
`cargo update`erzwingt die Aktualisierung des Pakets.
|
||||
|
||||
|
||||
|
||||
### VCPKG_ROOT nicht gesetzt
|
||||
## VCPKG_ROOT nicht gesetzt
|
||||
|
||||
#### Fehler
|
||||
### Fehler
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
#### Lösung
|
||||
### Lösung
|
||||
|
||||
Fügen Sie die Umgebungsvariable `VCPKG_ROOT` hinzu oder starten Sie mit `VCPKG_ROOT=<vcpkg_dir> cargo run`.
|
||||
|
||||
|
||||
|
||||
### clang nicht installiert oder LIBCLANG_PATH nicht gesetzt
|
||||
## clang nicht installiert oder LIBCLANG_PATH nicht gesetzt
|
||||
|
||||
#### Fehler
|
||||
### Fehler
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
#### Lösung
|
||||
### Lösung
|
||||
|
||||
Installieren Sie [LLVM](https://releases.llvm.org/download.html) und fügen Sie die Umgebungsvariable `LIBCLANG_PATH` als `llvm_install_dir/bin` hinzu.
|
||||
|
||||
@@ -3,9 +3,9 @@ title: FAQ for Windows
|
||||
weight: 40
|
||||
---
|
||||
|
||||
### vcpkg download package failed
|
||||
## vcpkg download package failed
|
||||
|
||||
#### Error
|
||||
### Error
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
#### Solution
|
||||
### Solution
|
||||
|
||||
Use a browser to download [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz), then move it into `vcpkg/downloads` and reinstall.
|
||||
|
||||
|
||||
|
||||
### Package in Cargo.lock not exist
|
||||
## Package in Cargo.lock not exist
|
||||
|
||||
#### Error
|
||||
### Error
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
Maybe the author used `git force push` and the previous commit was overwritten.
|
||||
|
||||
#### Solution
|
||||
### Solution
|
||||
|
||||
`cargo update`, force the package to be updated.
|
||||
|
||||
|
||||
|
||||
### VCPKG_ROOT not set
|
||||
## VCPKG_ROOT not set
|
||||
|
||||
#### Error
|
||||
### Error
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
#### Solution
|
||||
### Solution
|
||||
|
||||
Add `VCPKG_ROOT` environment variable, or run with `VCPKG_ROOT=<vcpkg_dir> cargo run`.
|
||||
|
||||
|
||||
|
||||
### clang not installed, or LIBCLANG_PATH not set
|
||||
## clang not installed, or LIBCLANG_PATH not set
|
||||
|
||||
#### Error
|
||||
### Error
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
#### Solution
|
||||
### Solution
|
||||
|
||||
Install [LLVM](https://releases.llvm.org/download.html), add the `LIBCLANG_PATH` environment variable as `llvm_install_dir/bin`.
|
||||
|
||||
@@ -3,9 +3,9 @@ title: FAQ para Windows
|
||||
weight: 40
|
||||
---
|
||||
|
||||
## vcpkg el paquete de descarga falló
|
||||
# vcpkg el paquete de descarga falló
|
||||
|
||||
### Error
|
||||
## Error
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
### Solución
|
||||
## Solución
|
||||
|
||||
Usa un navegador para descargar `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, luego muévelo a `vcpkg/downloads` y reinstalar.
|
||||
|
||||
|
||||
|
||||
## El paquete en Cargo.lock no existe
|
||||
# El paquete en Cargo.lock no existe
|
||||
|
||||
### Error
|
||||
## Error
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
Tal vez el autor usó `git force push` y la confirmación anterior se sobrescribió.
|
||||
|
||||
### Solución
|
||||
## Solución
|
||||
|
||||
`cargo update`, forzar la actualización del paquete
|
||||
|
||||
|
||||
|
||||
## VCPKG_ROOT no establecido
|
||||
# VCPKG_ROOT no establecido
|
||||
|
||||
### Error
|
||||
## Error
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
### Solución
|
||||
## Solución
|
||||
|
||||
Agregar `VCPKG_ROOT` variable de entorno, o ejecutar con `VCPKG_ROOT=<vcpkg_dir> cargo run`
|
||||
|
||||
|
||||
|
||||
## clang no instalado, o LIBCLANG_PATH no establecido
|
||||
# clang no instalado, o LIBCLANG_PATH no establecido
|
||||
|
||||
### Error
|
||||
## Error
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
### Solución
|
||||
## Solución
|
||||
|
||||
Instalar [llvm](https://releases.llvm.org/download.html), Añade el `LIBCLANG_PATH` variable de entorno como `llvm_install_dir/bin`
|
||||
|
||||
@@ -3,9 +3,9 @@ title: FAQ
|
||||
weight: 40
|
||||
---
|
||||
|
||||
## Échec du téléchargement du package vcpkg
|
||||
# Échec du téléchargement du package vcpkg
|
||||
|
||||
### Erreur
|
||||
## Erreur
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,14 +13,14 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
### Solution
|
||||
## Solution
|
||||
|
||||
Utiliser un navigateur pour télécharger `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, puis déplacez-le dans `vcpkg/downloads` et réinstallez.
|
||||
|
||||
|
||||
## Le paquet dans Cargo.lock n'existe pas
|
||||
# Le paquet dans Cargo.lock n'existe pas
|
||||
|
||||
### Erreur
|
||||
## Erreur
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -41,31 +41,31 @@ $ cargo run
|
||||
|
||||
Peut-être que l'auteur a utilisé `git force push` et que le commit précédent a été écrasé.
|
||||
|
||||
### Solution
|
||||
## Solution
|
||||
|
||||
`cargo update`, forcer la mise à jour du paquet.
|
||||
|
||||
|
||||
## VCPKG_ROOT non défini
|
||||
# VCPKG_ROOT non défini
|
||||
|
||||
### Erreur
|
||||
## Erreur
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
### Solution
|
||||
## Solution
|
||||
|
||||
Ajoutez la variable d'environnement `VCPKG_ROOT` ou lancer avec la commande `VCPKG_ROOT=<vcpkg_dir> cargo run`
|
||||
|
||||
## clang non installé ou LIBCLANG_PATH non défini
|
||||
# clang non installé ou LIBCLANG_PATH non défini
|
||||
|
||||
### Erreur
|
||||
## Erreur
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
### Solution
|
||||
## Solution
|
||||
|
||||
Installer [llvm](https://releases.llvm.org/download.html), et ajoutez la variable d'environnement `LIBCLANG_PATH` avec la valeur `llvm_install_dir/bin`
|
||||
@@ -3,9 +3,9 @@ title: FAQ per Windows
|
||||
weight: 40
|
||||
---
|
||||
|
||||
### Download del pacchetto vcpkg fallito
|
||||
## Download del pacchetto vcpkg fallito
|
||||
|
||||
#### Errore
|
||||
### Errore
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
#### Soluzione
|
||||
### Soluzione
|
||||
|
||||
Usa un browser per scaricare [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz), poi spostalo in `vcpkg/downloads` e reinstalla.
|
||||
|
||||
|
||||
|
||||
### Il pacchetto in Cargo.lock non esiste
|
||||
## Il pacchetto in Cargo.lock non esiste
|
||||
|
||||
#### Errore
|
||||
### Errore
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
Forse l'autore ha usato `git force push` e il commit precedente è stato sovrascritto.
|
||||
|
||||
#### Soluzione
|
||||
### Soluzione
|
||||
|
||||
`cargo update`, forza l'aggiornamento del pacchetto.
|
||||
|
||||
|
||||
|
||||
### VCPKG_ROOT non impostato
|
||||
## VCPKG_ROOT non impostato
|
||||
|
||||
#### Errore
|
||||
### Errore
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
#### Soluzione
|
||||
### Soluzione
|
||||
|
||||
Aggiungi la variabile d'ambiente `VCPKG_ROOT`, o esegui con `VCPKG_ROOT=<vcpkg_dir> cargo run`.
|
||||
|
||||
|
||||
|
||||
### clang non installato, o LIBCLANG_PATH non impostato
|
||||
## clang non installato, o LIBCLANG_PATH non impostato
|
||||
|
||||
#### Errore
|
||||
### Errore
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
#### Soluzione
|
||||
### Soluzione
|
||||
|
||||
Installa [LLVM](https://releases.llvm.org/download.html), aggiungi la variabile d'ambiente `LIBCLANG_PATH` come `llvm_install_dir/bin`.
|
||||
@@ -3,9 +3,9 @@ title: Windows FAQ
|
||||
weight: 40
|
||||
---
|
||||
|
||||
### vcpkg パッケージダウンロード失敗
|
||||
## vcpkg パッケージダウンロード失敗
|
||||
|
||||
#### エラー
|
||||
### エラー
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
#### 解決策
|
||||
### 解決策
|
||||
|
||||
ブラウザを使用して [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz) をダウンロードし、`vcpkg/downloads` に移動して再インストールしてください。
|
||||
|
||||
|
||||
|
||||
### Cargo.lock 内のパッケージが存在しない
|
||||
## Cargo.lock 内のパッケージが存在しない
|
||||
|
||||
#### エラー
|
||||
### エラー
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
おそらく作者が `git force push` を使用して以前のコミットを上書きしたようです。
|
||||
|
||||
#### 解決策
|
||||
### 解決策
|
||||
|
||||
`cargo update` を実行して、パッケージを強制的に更新してください。
|
||||
|
||||
|
||||
|
||||
### VCPKG_ROOT が設定されていない
|
||||
## VCPKG_ROOT が設定されていない
|
||||
|
||||
#### エラー
|
||||
### エラー
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
#### 解決策
|
||||
### 解決策
|
||||
|
||||
`VCPKG_ROOT` 環境変数を追加するか、`VCPKG_ROOT=<vcpkg_dir> cargo run` で実行してください。
|
||||
|
||||
|
||||
|
||||
### clang がインストールされていない、または LIBCLANG_PATH が設定されていない
|
||||
## clang がインストールされていない、または LIBCLANG_PATH が設定されていない
|
||||
|
||||
#### エラー
|
||||
### エラー
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
#### 解決策
|
||||
### 解決策
|
||||
|
||||
[LLVM](https://releases.llvm.org/download.html) をインストールし、`LIBCLANG_PATH` 環境変数を `llvm_install_dir/bin` として追加してください。
|
||||
@@ -3,9 +3,9 @@ title: FAQ para Windows
|
||||
weight: 40
|
||||
---
|
||||
|
||||
### Falha no download de pacote vcpkg
|
||||
## Falha no download de pacote vcpkg
|
||||
|
||||
#### Erro
|
||||
### Erro
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
#### Solução
|
||||
### Solução
|
||||
|
||||
Use um navegador para baixar [libyuv-287158925b0e03ea4499a18b4e08478c5781541b.tar.gz](https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz), depois mova para `vcpkg/downloads` e reinstale.
|
||||
|
||||
|
||||
|
||||
### Pacote no Cargo.lock não existe
|
||||
## Pacote no Cargo.lock não existe
|
||||
|
||||
#### Erro
|
||||
### Erro
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
Talvez o autor tenha usado `git force push` e o commit anterior foi sobrescrito.
|
||||
|
||||
#### Solução
|
||||
### Solução
|
||||
|
||||
`cargo update`, força a atualização do pacote.
|
||||
|
||||
|
||||
|
||||
### VCPKG_ROOT não definido
|
||||
## VCPKG_ROOT não definido
|
||||
|
||||
#### Erro
|
||||
### Erro
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
#### Solução
|
||||
### Solução
|
||||
|
||||
Adicione a variável de ambiente `VCPKG_ROOT`, ou execute com `VCPKG_ROOT=<vcpkg_dir> cargo run`.
|
||||
|
||||
|
||||
|
||||
### clang não instalado, ou LIBCLANG_PATH não definido
|
||||
## clang não instalado, ou LIBCLANG_PATH não definido
|
||||
|
||||
#### Erro
|
||||
### Erro
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
#### Solução
|
||||
### Solução
|
||||
|
||||
Instale [LLVM](https://releases.llvm.org/download.html), adicione a variável de ambiente `LIBCLANG_PATH` como `llvm_install_dir/bin`.
|
||||
@@ -3,20 +3,20 @@ title: Windows 常见问题
|
||||
weight: 40
|
||||
---
|
||||
|
||||
## vcpkg下载包失败
|
||||
### 错误示例
|
||||
# vcpkg下载包失败
|
||||
## 错误示例
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
### 解决方法
|
||||
## 解决方法
|
||||
使用浏览器下载`https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, 然后放到`vcpkg/downloads`下, 重新安装.
|
||||
|
||||
|
||||
|
||||
## Cargo.lock里的版本不存在
|
||||
### 错误示例
|
||||
# Cargo.lock里的版本不存在
|
||||
## 错误示例
|
||||
```
|
||||
$ cargo run
|
||||
Updating git repository `https://github.com/open-trade/confy`
|
||||
@@ -34,25 +34,25 @@ $ cargo run
|
||||
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
|
||||
```
|
||||
可能作者使用`git force push`覆盖了之前的commit
|
||||
### 解决方法
|
||||
## 解决方法
|
||||
`cargo update`强制更新包
|
||||
|
||||
|
||||
|
||||
## VCPKG_ROOT环境变量未设置
|
||||
### 错误示例
|
||||
# VCPKG_ROOT环境变量未设置
|
||||
## 错误示例
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
### 解决办法
|
||||
## 解决办法
|
||||
添加VCPKG_ROOT环境变量, 或者使用`VCPKG_ROOT=<vcpkg_dir> cargo run`
|
||||
|
||||
|
||||
|
||||
## 未安装clang环境, 或未设置LIBCLANG_PATH环境变量
|
||||
### 错误示例
|
||||
# 未安装clang环境, 或未设置LIBCLANG_PATH环境变量
|
||||
## 错误示例
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
### 解决办法
|
||||
## 解决办法
|
||||
安装[llvm](https://releases.llvm.org/download.html), 设置`LIBCLANG_PATH`环境变量为`llvm_install_dir/bin`
|
||||
@@ -3,9 +3,9 @@ title: Windows 常見問題
|
||||
weight: 40
|
||||
---
|
||||
|
||||
## vcpkg 下載包失敗
|
||||
# vcpkg 下載包失敗
|
||||
|
||||
### 錯誤
|
||||
## 錯誤
|
||||
|
||||
```
|
||||
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
|
||||
@@ -13,15 +13,15 @@ weight: 40
|
||||
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
|
||||
```
|
||||
|
||||
### 解決方法
|
||||
## 解決方法
|
||||
|
||||
使用瀏覽器下載 `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`,然後放到 `vcpkg/downloads下,重新安裝。
|
||||
|
||||
|
||||
|
||||
## Cargo.lock 裡的套件不存在
|
||||
# Cargo.lock 裡的套件不存在
|
||||
|
||||
### 錯誤
|
||||
## 錯誤
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
@@ -42,34 +42,34 @@ $ cargo run
|
||||
|
||||
可能作者使用 `git force push` 覆蓋了之前的 commit。
|
||||
|
||||
### 解決方法
|
||||
## 解決方法
|
||||
|
||||
使用 `cargo update`,強制更新套件
|
||||
|
||||
|
||||
|
||||
## VCPKG_ROOT 環境變數未設置
|
||||
# VCPKG_ROOT 環境變數未設置
|
||||
|
||||
### 錯誤
|
||||
## 錯誤
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
|
||||
```
|
||||
|
||||
### 解決辦法
|
||||
## 解決辦法
|
||||
|
||||
加入 VCPKG_ROOT 環境變數, 或者使用 `VCPKG_ROOT=<vcpkg_dir> cargo run`
|
||||
|
||||
|
||||
|
||||
## 未安裝 clang 環境,或未設置 LIBCLANG_PATH 環境變數
|
||||
# 未安裝 clang 環境,或未設置 LIBCLANG_PATH 環境變數
|
||||
|
||||
### 錯誤
|
||||
## 錯誤
|
||||
|
||||
```
|
||||
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
|
||||
```
|
||||
|
||||
### 解決辦法
|
||||
## 解決辦法
|
||||
|
||||
安裝 [llvm](https://releases.llvm.org/download.html),設置 `LIBCLANG_PATH` 環境變數為 `llvm_install_dir/bin`
|
||||
Reference in New Issue
Block a user