Download and Install
1
Install dependencies
Before you begin developing, ensure you install Ruby version 2.7 or later in your development environment. Ruby is pre-installed on macOS and some Linux distributions, but you might need to update your version.
Important
The Ruby driver is not officially supported on Windows.
2
3
Add the Ruby driver to your project
Open the quickstart.rb
file and add the following code:
require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'mongo' end
This code adds the Ruby driver as a dependency by using the Bundler dependency management tool.
After you complete these steps, you have a new project directory with the driver dependencies installed.
Note
If you run into issues on this step, ask for help in the MongoDB Community Forums or submit feedback by using the Rate this page tab on the right side of this page.