Get the Rust environment. Press enter to validate the default Rust installation settings and put the files for the current platform in $HOME/.cargo and $HOME/.rustup.
$ curl https://sh.rustup.rs -sSf | sh
Switch to nightly builds to get SIMD support.
$ source $HOME/.cargo/env
$ rustup default nightly
Get and build ripgrep with AVX acceleration.
$ git clone https://github.com/BurntSushi/ripgrep
$ cd ripgrep
$ RUSTFLAGS="-C target-cpu=native" cargo build --release --features 'simd-accel avx-accel'
$ strip ./target/release/rg
Check for SIMD and AVX support.
$ ./target/release/rg --version
ripgrep 0.8.1 (rev b98585b429)
+SIMD +AVX
Put the standalone rg binary in the PATH.