Prerequisites¶
Zvec requires a few system dependencies before you can build the native extension.
Ruby¶
Ruby 3.2.0 or later is required.
CMake¶
CMake 3.26 or later is needed to build the C++ extension.
ICU4C¶
The zvec C++ library depends on ICU for Unicode support (via Apache Arrow).
C++ Compiler¶
A C++17-capable compiler is required:
- macOS: Xcode Command Line Tools (
xcode-select --install) - Linux: GCC 9+ or Clang 10+
Optional: Pre-built zvec Library (Recommended)¶
Pre-building the zvec C++ library with Homebrew makes gem install zvec fast (~10 seconds instead of ~10 minutes):
Without this, the gem will download and compile the full C++ dependency tree (Arrow, RocksDB, protobuf, etc.) from source during installation.
Verifying Your Environment¶
Run the following to confirm everything is in place:
If you installed the Homebrew formula: