linux rust download dependency error
if a proxy or similar is necessary net.git-fetch-with-cli
Create config in cargo
vi ~/.cargo/config
1
add proxy
[http]
proxy = "127.0.0.1:7891"
[https]
proxy = "127.0.0.1:7891"
Or modify the download warehouse
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
Pro test, modify and download the warehouse.
Solution to the error in compiling couldn't resolve host name (could not resolve host: Crites)
by rust
When compiling the rust source program, the following couldn’t resolve host name (couldn’t resolve host: Crites) errors may occur (see https://github.com/ustclug/discussions/issues/294 )。
A temporary solution is to add the environment variable cargo when running cargo_ HTTP_ MULTIPLEXING=false。 The function is to cancel parallel downloads. For specific reasons, please refer to the error report of building rustc after using the image.
Pro test passed!
Read More:
- [Solved] Git Run Error: Could not resolve host: github.com
- [Errno 14] curl#6 – “Could not resolve host: yum.dockerproject.org; Unknown error“
- [Solved] Could not resolve host: yum.dockerproject.org; Unknown error
- Fetch Error: Failed to execute ‘fetch’ on ‘Window’: Request with GET/HEAD method cannot have body
- [Solved] But was actually of type ‘com. Sun. Proxy. $proxy**‘
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- Template argument deduction/substitution failed: couldn‘t deduce template parameter [How to Solve]
- [Solved] UE4 Error: Couldn‘t find file for package *** requested by async loading code. NameToLoad: ***
- Module not found: Error: Can‘t resolve ‘sass-loader‘ in…
- Module not found: Error: Can‘t resolve ‘sass-loader‘
- RuntimeError: ONNX export failed: Couldn‘t export operator aten::upsample_bilinear2d
- [Webpack Update] vue-loader Error: Compiled with problems : ERRORModule notfound: Error:Can‘ t resolve vue in
- Git Push Error: Proxy CONNECT aborted [How to Solve]
- [Solved] Connection error with cocoapods. Proxy CONNECT aborted
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- It can be opened with localhost, but not with IP address. The request host name is invalid
- [Solved] Rust Compile Error: error: linker `cc` not found
- [Solved] net core HTTP Error 500.31 – Failed to load ASP.NET Core runtime HTTP Error 500.30 – ASP.NET Core
- Tensorflow Run Error or the interface is stuck or report error: Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
- [vite] http proxy error: Error: self signed certificate in certificate chain vite