> For the complete documentation index, see [llms.txt](https://docs.validator247.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.validator247.com/foundry-install.md).

# Foundry install

Có vẻ như `foundry` chưa được cài đặt đúng cách. Hãy làm theo các bước sau để cài đặt `foundry` và sau đó cài đặt `cast`:

1. **Cập nhật môi trường**: Bạn cần chạy lệnh sau để cập nhật biến môi trường `PATH` mà `foundryup` đã thêm vào:

   ```bash
   source /root/.bashrc
   ```
2. **Cài đặt `foundry`**: Bây giờ bạn có thể chạy lệnh sau để cài đặt `foundry`:

   ```bash
   foundryup
   ```
3. **Cài đặt `cast`**: Sau khi `foundry` được cài đặt, bạn có thể cài đặt `cast` bằng lệnh sau:

   ```bash
   cargo install cast
   ```
4. **Kiểm tra lại**: Kiểm tra xem `cast` đã được cài đặt thành công chưa bằng cách chạy:

   ```bash
   cast --version
   ```

Nếu bạn gặp vấn đề nào khác trong quá trình cài đặt, hãy cho tôi biết để tôi có thể hỗ trợ thêm!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.validator247.com/foundry-install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
