Skip to content

Commit 0270283

Browse files
committed
Clean up API installation instructions
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 83dfa49 commit 0270283

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,17 @@ Requirements:
121121
* [yara-x](https://virustotal.github.io/yara-x/) - the rule language
122122
* [pkgconf](http://pkgconf.org/) - required by Go to find C dependencies, included in many UNIX distributions
123123

124-
`yara-x` requires an underlying C API to function. For Wolfi users, this can be installed by running `apk add yara-x-compat`.
124+
`yara-x` requires an underlying C API to function. To build and install the API, reference the documentation here for installation instructions: https://virustotal.github.io/yara-x/docs/api/c/c-/#building-the-c-library.
125125

126-
For other devices, reference the documentation here for installation instructions: https://virustotal.github.io/yara-x/docs/api/c/c-/#building-the-c-library
126+
Running `cargo cinstall -p yara-x-capi --release` without `sudo` may encounter permission denied errors.
127127

128-
Running `cargo cinstall -p yara-x-capi --release` may encounter permission denied errors. If this is the case, run the following:
128+
If this is the case, run the following:
129+
```sh
130+
sudo -E env "PATH=$PATH" $(which cargo) cinstall -p yara-x-capi --release
129131
```
130-
cargo cinstall -p yara-x-capi --release --prefix=/tmp/yara-x
131-
```
132-
133-
And then copy the resulting files from `/tmp/yara-x` to `/usr/local/lib` and `/usr/local/include` (or the preferred `PKG_CONFIG_PATH`/`LD_LIBRARY_PATH` location(s)).
134132

135133
Install malcontent:
136-
137-
```shell
134+
```sh
138135
go install github.com/chainguard-dev/malcontent/cmd/mal@latest
139136
```
140137

0 commit comments

Comments
 (0)