Skip to content

Commit

Permalink
docs: Add avm to system path (#3272)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawazi committed Sep 25, 2024
1 parent 37e0cd2 commit 0c306c2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/src/pages/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ On Linux systems you may need to install additional dependencies if cargo instal
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
```

If you're using `bash`, add `avm` to PATH for `bash`, then reload the shell:

```shell
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```

If you're using `fish`, add `avm` to PATH for `fish`, then reload the shell:

```shell
echo "set -gx PATH \$PATH \$HOME/.cargo/bin" >> ~/.config/fish/config.fish
source ~/.config/fish/config.fish
```

If you're using `zsh`, add `avm` to PATH for `zsh`, then reload the shell:

```shell
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
```

Install the latest version of the CLI using `avm`, and then set it to be the version to use.

```shell
Expand Down

1 comment on commit 0c306c2

@Ozodimgba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical: Error during installation

error[E0282]: type annotations needed for Box<_>
--> /workspace/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving items an explicit type, where the placeholders _ are specified
|
83 | let items: Box<_> = format_items
| ++++++++

Please sign in to comment.