Skip to content

Commit cc66d0c

Browse files
committed
install.sh
1 parent fa9e9d8 commit cc66d0c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

INSTALL.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
## Installing FireDBG
2+
3+
### Installer
4+
5+
Run the following command to install the prebuilt binaries of FireDBG.
6+
7+
```shell
8+
curl https://raw.githubusercontent.com/SeaQL/FireDBG.for.Rust/main/install.sh -sSf | sh
9+
```
10+
11+
FireDBG binaries will be installed in `~/.cargo/bin` and a debugger self test will be conducted to verify the installation. Expect to see:
12+
13+
```shell
14+
info: completed FireDBG self tests
15+
```
16+
17+
In case you got error messages when performing self test, read [Troubleshooting Guide](https://github.com/SeaQL/FireDBG.for.Rust/blob/main/Troubleshooting.md) for the solution of common errors.
18+
19+
### Manual Installation
20+
21+
If you saw `FireDBG: no precompiled binaries available for OS: ...`, you can manually download a prebuilt binaries of compatible OS.
22+
23+
1. Go to the [FireDBG release](https://github.com/SeaQL/FireDBG.for.Rust/releases) page
24+
25+
2. Download a prebuilt binaries of compatible OS
26+
27+
```shell
28+
# Download the prebuilt binaries
29+
curl -sSfL "https://github.com/SeaQL/FireDBG.for.Rust/releases/download/1.74.1/x86_64-ubuntu22.04.tar.gz" -o "x86_64-ubuntu22.04.tar.gz"
30+
31+
# General form
32+
curl -sSfL "https://github.com/SeaQL/FireDBG.for.Rust/releases/download/<LATEST_VERSION>/<ARC>-<OS>.tar.gz" -o "<ARC>-<OS>.tar.gz"
33+
```
34+
35+
3. Unzip the `.tar.gz`
36+
37+
```shell
38+
# Unzip
39+
mkdir -p "x86_64-ubuntu22.04" && tar xf "x86_64-ubuntu22.04.tar.gz" --strip-components 1 -C "x86_64-ubuntu22.04"
40+
41+
# General form
42+
mkdir -p "<ARCH>-<OS>" && tar xf "<ARCH>-<OS>.tar.gz" --strip-components 1 -C "<ARCH>-<OS>"
43+
```
44+
45+
4. Copy FireDBG binaries into `$HOME/.cargo/bin`
46+
47+
```shell
48+
# Copy
49+
mkdir -p "$HOME/.cargo/bin" && cp -r x86_64-ubuntu22.04/* "$HOME/.cargo/bin/"
50+
51+
# General form
52+
mkdir -p "$HOME/.cargo/bin" && cp -r <ARCH>-<OS>/* "$HOME/.cargo/bin/"
53+
```
54+
55+
5. Perform debugger self tests
56+
57+
```shell
58+
cd "$HOME/.cargo/bin/firedbg-lib/debugger-self-test"
59+
rm -f *.firedbg.ss
60+
firedbg run debugger_self_test --output output.firedbg.ss
61+
firedbg-indexer --input output.firedbg.ss validate --json expected_data.json && echo "info: completed FireDBG self tests"
62+
```

0 commit comments

Comments
 (0)