Installation and Setup
This guide covers how to install and configure Red Arrow in your Ruby environment.Prerequisites
Red Arrow requires the Apache Arrow GLib library to be installed on your system. The installation process varies by platform.System Requirements
- Ruby 2.7 or later (or JRuby)
- Apache Arrow GLib (C library)
- GObject Introspection library
Quick Installation
Using Bundler (Recommended)
The easiest way to install Red Arrow is using Bundler with therubygems-requirements-system plugin, which automatically handles system dependencies.
Add to your Gemfile:
- Detect your operating system
- Install Apache Arrow GLib if needed
- Install Red Arrow gem
Using RubyGems
Install directly with gem:Platform-Specific Installation
macOS with Homebrew
Install Apache Arrow using Homebrew:Ubuntu/Debian
Add Apache Arrow APT repository and install:CentOS/RHEL/AlmaLinux
Add Apache Arrow YUM repository:Amazon Linux
Fedora
Conda
If you’re using Conda:Windows (MSYS2)
JRuby Installation
For JRuby, Arrow Java libraries are automatically managed:arrow-vector and arrow-memory-netty) are specified in the gemspec and will be resolved automatically.
Additional Packages
Install additional Red Arrow packages for extended functionality:Parquet Support
Dataset API (S3, Multiple Files)
CUDA/GPU Support
Flight RPC
Gandiva (Expression Compiler)
Verification
Verify your installation:Development Setup
For development work on Red Arrow itself:Building from Source
To build Apache Arrow C++ and GLib from source, refer to:Troubleshooting
Missing System Libraries
If you see errors about missing libraries:PKG_CONFIG_PATH includes Arrow’s .pc files:
Version Mismatch
Red Arrow requires matching versions with Arrow GLib. If you encounter version errors, ensure:macOS Library Paths
On macOS, you may need to set library paths:Next Steps
Now that Red Arrow is installed, learn how to use it:- Basic Usage - Core concepts and operations
- Overview - Library features and architecture