Skip to content

Commit 3f31be2

Browse files
docs: Update install commands
1 parent f7b92e2 commit 3f31be2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/src/getting-started/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ For now, we can use Cargo to install the CLI.
3737
cargo install --git https://github.com/project-serum/anchor --tag v0.4.0 anchor-cli --locked
3838
```
3939

40-
On Linux systems you may need to install additional dependencies. On Ubuntu,
40+
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,
4141

4242
```bash
43-
sudo apt-get install -y pkg-config build-essential libudev-dev
43+
sudo apt-get update && apt-get upgrade && apt-get install -y pkg-config build-essential libudev-dev
4444
```
4545

4646
To install the JavaScript package.

docs/src/tutorials/tutorial-3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ If you look at the `Cargo.toml` for this example, you'll see
5757

5858
Often it's useful for a program to sign instructions. For example, if a program controls a token
5959
account and wants to send tokens to another account, it must sign. In Solana, this is done by specifying
60-
"signer seeds" on CPI (TODO: add link to docs). To do this using the example above, simply change
60+
"signer seeds" on CPI. To do this using the example above, simply change
6161
`CpiContext::new(cpi_accounts, cpi_program)` to
6262
`CpiContext::new_with_signer(cpi_accounts, cpi_program, signer_seeds)`.
6363

64+
For more background on signing with program derived addresses, see the official Solana [documentation](https://docs.solana.com/developing/programming-model/calling-between-programs#program-signed-accounts).
65+
6466
## Return values
6567

6668
Solana currently has no way to return values from CPI, alas. However, one can approximate this

0 commit comments

Comments
 (0)