mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Show how to create ~/.local/bin
This commit is contained in:
parent
c96481e25f
commit
834916bad1
1 changed files with 3 additions and 0 deletions
|
@ -150,12 +150,15 @@ On Linux to install the `rust-analyzer` binary into `~/.local/bin`, these comman
|
||||||
|
|
||||||
[source,bash]
|
[source,bash]
|
||||||
----
|
----
|
||||||
|
$ mkdir -p ~/.local/bin
|
||||||
$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
|
$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
|
||||||
$ chmod +x ~/.local/bin/rust-analyzer
|
$ chmod +x ~/.local/bin/rust-analyzer
|
||||||
----
|
----
|
||||||
|
|
||||||
Make sure that `~/.local/bin` is listed in the `$PATH` variable and use the appropriate URL if you're not on a `x86-64` system.
|
Make sure that `~/.local/bin` is listed in the `$PATH` variable and use the appropriate URL if you're not on a `x86-64` system.
|
||||||
|
|
||||||
|
You don't have to use `~/.local/bin`, any other path like `~/.cargo/bin` or `/usr/local/bin` will work just as well.
|
||||||
|
|
||||||
Alternatively, you can install it from source using the command below.
|
Alternatively, you can install it from source using the command below.
|
||||||
You'll need the latest stable version of the Rust toolchain.
|
You'll need the latest stable version of the Rust toolchain.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue