Installation

Purpose

This guide covers installing Cabriolet on your system. Cabriolet is a pure Ruby gem with no native dependencies, making installation straightforward on any platform that supports Ruby.

Concepts

Cabriolet is distributed as a Ruby gem through RubyGems.org. It requires Ruby 2.7 or later and has no native dependencies, ensuring compatibility across platforms including Linux, macOS, and Windows.

Requirements

Ruby Version

Cabriolet requires Ruby 2.7 or later. Check your Ruby version:

ruby --version

If you need to install or update Ruby, see the official Ruby installation guide.

Operating System Support

Cabriolet works on all platforms that support Ruby:

  • Linux (all distributions)

  • macOS (10.14+)

  • Windows (10+)

  • BSD systems

  • Any other Ruby-compatible platform

Installation Methods

Install the latest stable version:

gem install cabriolet

This installs both the library and command-line tools.

Method 2: Installing from Source

For development or to use unreleased features:

git clone https://github.com/omnizip/cabriolet.git
cd cabriolet
bundle install
bundle exec rake install

Method 3: Using Bundler in Your Project

Add to your Gemfile:

gem 'cabriolet'

Then install:

bundle install

Verifying Installation

After installation, verify Cabriolet is available:

cabriolet --version

You should see output like:

Cabriolet version 0.1.0

Test basic functionality:

cabriolet --help

This displays the available commands.

Troubleshooting

Command Not Found

If cabriolet is not found after installation:

  1. Ensure the gem binaries directory is in your PATH:

    gem environment

    Look for the "EXECUTABLE DIRECTORY" path.

  2. Add it to your PATH if needed (typically ~/.gem/ruby/X.X.X/bin):

    export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"

Permission Errors

If you get permission errors during installation:

  1. Use the --user-install flag:

    gem install cabriolet --user-install
  2. Or use a Ruby version manager like rbenv or RVM instead of the system Ruby.

Version Conflicts

If you encounter dependency conflicts:

gem update --system
gem install cabriolet

Next steps

Now that Cabriolet is installed: