Let’s start this article with an error message right off the bat:1
~> cargo install ripgrep --features 'avx-accel simd-accel' Updating registry `https://github.com/rust-lang/crates.io-index` Installing ripgrep v0.9.0 … error[E0432]: unresolved import `simd::x86::avx` --> /home/mqudsi/.cargo/registry/src/github.com-1ecc6299db9ec823/bytecount-0.3.2/src/lib.rs:49:16 | 49 | use simd::x86::avx::{LowHigh128, u8x32}; | ^^^ Could not find `avx` in `x86` error: aborting due to previous error For more information about this error, try `rustc --explain E0432`. error: Could not compile `bytecount`.
I’m primarily blogging this as I’ve run into – and worked around – this error several times before running into it again and not being able to remember how I resolved this problem the last time around. ↩